下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
_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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 房地产开发管理新理念
- 2023年答案能源管理基础体系知识试题
- 金融行业高效办公用品招标
- 市场营销授权产品推广策略
- 共享服务器租赁合同范本
- 认识钟表课件大约几时
- 艺术区工作室租赁合同
- 雨水管道铺设施工合同
- 市政工程EPC合同管理策略
- 高端定制服装店设计师聘用书
- 奇瑞汽车转向系统碰撞建模指南V
- 血管瘤的护理诊断及护理措施ppt
- 防孤岛测试报告
- 一种用滚轮装置进行桥架电缆敷设的方法
- 治理校园噪声五年级综合实践上册课件
- 高压旋喷桩对地基进行加固处理施工方案
- GWJ 009-2016 无线电管理频率数据库结构技术规范
- 应急处置与逃生自救互救知识培训
- CRM系统操作手册
- 儿科应急预案及程序
- 第一节-食品干藏原理
评论
0/150
提交评论