付费下载
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
_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广东佛山顺德融媒有限公司招聘备考题库完整参考答案详解
- 2026四川成都蓉城酒店管理有限公司招聘酒店人力资源部人力资源岗等岗位11人备考题库及一套参考答案详解
- 供应商准入管理标准
- 2026四川九洲光电科技股份有限公司招聘19人备考题库及参考答案详解1套
- 2026广东韶关法院招聘劳动合同制审判辅助人员11人备考题库完整参考答案详解
- 2026太原化学工业集团有限公司所属企业社会招聘30人备考题库及答案详解参考
- 2026广西南宁产投汽车工业集团有限责任公司招聘54人备考题库及一套完整答案详解
- 燕京啤酒东北销售公司招聘销售业务员2026届应届毕业生招聘备考题库及参考答案详解1套
- 某汽配厂质量检验办法
- 金属加工企业设备维护制度
- 2023学年完整公开课版东南亚4
- 多媒体技术应用课件PPT教学资料
- 川2020J146-TJ 建筑用轻质隔墙条板构造图集
- 医疗技术临床应用管理目录
- DB11T 1937-2021河道水环境维护和河道绿地管护分级作业规范
- GB/T 320-2006工业用合成盐酸
- 工业CT发展及应用课件
- 许继电气500kv变压器电量保护wbh-801ag5技术说明书
- 《民法典》-第五编 婚姻家庭-案例分析,解读
- 人教人音版六年级音乐上册《红河谷》课件(优秀)
- 7《音乐的风格》之《梅花三弄》 课件(共9张PPT)
评论
0/150
提交评论