付费下载
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
_ZSL001_InitializeParameter(
PAGE
1
/3)
ZSL001
InitializeSettings:_ZSL001_InitializeParameter
Basicfunction
Symbol
InitializesthesettingsintheSmar sor.
StartTrigger
_ZSL001_InitializeParameter
BusyFlag
(BOOL)EN
UnitSelection(INT)
UnitSelect
SerialPortNo.(INT)
PortNo
(BOOL)ENO(BOOL)BUSY(BOOL)
OK
BusyFlagNormalEnd
SensorCHNo.
(INT)
SensorChNo
(BOOL)
NG
ErrorEnd
FilenameApplicablemodels
Lib\FBL\omronlib\Smar sor\ZSL\_ZSL001_IntializeParameter10.cxfSmar sor ZS-LDC
CPUUnit CS1*-CPU**HUnitversion3.0orhigherCJ1*-CPU**HUnitversion3.0orhigherCJ1M-CPU**Unitversion3.0orhigherCP1H
CP1L(except10pointsCPU)
Conditions
SerialCommunicationsUnits/Boards
CX-ProgrammerExternalConnections
CS1W-SCU21-V1,CJ1W-SCU21-V1,CJ1W-SCU41-V1UnitVersion1.2orhigher
CS1W-SCB21-V1andCS1W-SCB41-V1UnitVersion1.2orhigherVersion5.0orhigher
forusages
FunctiondescriptionFB
precautions
Canbeusedfor1:Nconnectionsincontrollerconstitutionofthesensorside.
Communicationsmustbewithinonenetworkandcannotcrosstoanothernetwork. m)functionblock,andtheotherSmar sorsettingsusingtheSetSerialGatewayMode(_SCx604
CommunicationSettings
Thecommunicationsettingsoftheserialport(SerialGateway)mustbethesameasthoseoftheSmartSensor.
ThecommunicationsettingsofthespecifiedserialportcanbesettothedefaultSmar sorsettings(thefactoryshipmentvalue)usingtheSetCommunicationsPort(SetPortGATEWAY)functionblock.
FormonitoringtheResponseTimeoutTime(default5s),20sormoreare mended.CPUUnitSettings
PCSystemSetup:SharedSettingsforCommunicationsInstructionsinFBs
CommunicationsInstructionResponseTimeoutTime(default:2s),20s mended
Numberofretries(default:0)SharedResources
Communicationsport(internallogicalports)
WhentheStartTriggerturnsON,allsettingsarereturnedtotheirdefaultvaluesfortheSmar sorconnectedtotheSerialPortspecifiedbytheConnectionUnit,SerialPortNo.andSensorCHNo.
ThisFBisprocessedovermultiplecycles.TheBUSYoutputvariablecanbeusedtocheckwhethertheFBisbeingprocessed.
Becausethereisacasetogenerateatime-outerrorwhenYoustartmultipleFBsatthesametime,thisshouldbeavoided.
OKorNGwillbeturnedONonlyforonecycleafterprocessingiscompleted.UsetheseflagstodetectofFBprocessing.
TimeChart
StartTrigger
BusyFlag
ONOFF
ONOFF
NormalEnd(OK)orErrorEnd(NG)
ONOFF
ENinputconditionRestrictionsinputvariables
Outputvariables
FBexecutioncompleted.
ConnectENtoanORbetweenanupwardlydifferentiatedconditionfortheStartTriggerandtheBUSYoutputfromtheFBasabove.
AlwaysuseanupwardlydifferentiatedconditionforEN.
Iftheinputvariablesareoutofrange,theENOFlagwillturnOFFandtheFBwillnotbeprocessed.
ThisFBrequiresmultiplecyclestoprocess.AlwaysconnectanORincludingtheBUSYoutputvariabletotheENinputvariabletoensurethattheFBisprocessedtoacompletion(seeSymbol).
DonotturntheBUSYoutputvariableONorOFFoutsidetheFB.
Others
Upto15secondsmayberequiredforthisFBtobecompleted(i.e.,fromENturningONuntiltheOKorNGFlagturnsON).
Applicationexample
ASmarsorisconnected1:NtotheSerialPort1ontheSerialCommunicationsBoard(SCB).WhenbitAturnsON,thesettingoftheSmarsorisinitialized.
SerialPort TheConnectionUnit“SCB”(#BBBB)No.:1
SCB CPU SCU
Smar sor 1:NConnecionCH2
BitA _ZSL001_InitializeParameter
(BOOL) (BOOL)
EN ENO BusyFlagUnitSelection (INT) (BOOL) BitB
BitB #BBBB UnitSelect BUSY NormalEnd
SerialPortNo. (INT) (BOOL) BitC
&1 PortNo OK ErrorEnd
SensorCHNo. (INT) (BOOL) BitD
&2 SensorChNo NG
Relatedmanuals
ZS-LSeriesSmar sorLaserTypeUser’sManual(Z208)
ZSSeriesSmar sorCommunicationCommandReference(Z231)
VariableTables
InputVariables
Name
Variablename
Datatype
Default
Range
Description
EN
EN
BOOL
1(ON):FBstarted.0(OFF):FBnotstarted.
Unitselection
UnitSelect
INT
&0
Asright
SpecifytheUnitandtheserialport.
Onlyserialport2ofCP1H/CP1LM-typeCPUunitispossibletousethisFB.
ConnectedtoCPUUnit
Unitselection #FFFF
SerialportNo. Notaccessed.
(CP1H/CP1L-M:SerialPort2CP1L-L14/20:SerialPort1)
ConnectedtoSerialCommunicationBoard(SCB)Unitselection #BBBB
SerialportNo. &1:SerialPort1&2:SerialPort2
ConnectedtoSerialCommunicationUnit(SCU)
Unitselection SCUUnitNo.(&0to&15)
SerialportNo. &1:SerialPort1&2:SerialPort2
SerialPortNo.
PortNo
INT
&1
&1to&2
SensorCHNo.
SensorChNo
INT
&0
&0to&10
SpecifytheCHNo.oftheconnectingsensor.
OutputVariables
Name
Variablename
Datatype
Range
Description
ENO
(Maybeomitted.)
ENO
BOOL
1(ON):FBprocessednormally.
0(OFF):FBnotprocessedorendedinanerror.
BusyFlag
BUSY
BOOL
AutomaticallyturnsOFFwhenprocessingiscompleted.
Normalend
OK
BOOL
TurnsONonlyforonecyclewhenprocessingendsnormally.
Errorend
NG
BOOL
TurnsONonlyforonecyclewhenprocessingendsinanerror.
InternalVariables
InternalvariablesarenotoutputfromtheFB.
IftheNGFlagfromtheFBturnsON,thefollowinginternalvariablescanbemonitoredtoobtaininformationontheerror.
Name
Variablename
Datatype
Range
Description
Errorcode
ErrorCode
WORD
TheresultsinformationfromtheSmarsorisoutputtotheErrorcode.
Seebelow.
E
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年中国石油集团宝石管业有限公司春季招聘(5人)考试备考题库及答案解析
- 2026重庆云阳县人民法院招聘书记员4人考试模拟试题及答案解析
- 2027届高三数学一轮复习课件:第八章 8.5 直线与圆锥曲线的位置关系
- 区块链审计职业方向
- 2026辽宁省精神卫生中心面向社会招聘高层次和急需紧缺人才(第二批)3人考试模拟试题及答案解析
- 多子女抚养离婚协议书
- 网版制版员安全行为水平考核试卷含答案
- 2026年金华武义县卫健系统下属医疗单位招聘事业单位工作人员24人考试备考试题及答案解析
- 木质家具制作工岗前工作规范考核试卷含答案
- 2026四川忻州市神池县人力资源和社会保障局招聘公益性岗位人员65人考试参考题库及答案解析
- 2025年浙江省初中学业水平考试科学试卷真题(精校打印)
- 金属与石材幕墙工程技术规范-JGJ133-2024含条文说
- Rexroth(博世力士乐)VFC3610系列变频器使用说明书
- 成都设计咨询集团有限公司2025年社会公开招聘(19人)笔试参考题库附带答案详解
- 幼儿园大班健康:我的房间我做主
- 职业妆画法课件
- 2024年安徽中医药高等专科学校招聘考试真题
- 2025年云南省中考物理试卷真题(含答案解析 )
- 期权开户测试题及答案
- DBJ50-T-296-2018 山地城市室外排水管渠设计标准
- 2025年山东省职教高考《职业适应性测试》考前冲刺模拟试题库(附答案)
评论
0/150
提交评论