付费下载
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
_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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 单位笔试核心试题及答案
- WebGL粒子特效编程实战课程设计
- RAG打造知识问答平台教程课程设计
- 产品销售系统课程设计
- 室内空气设计技术课程设计
- 爆破工程课程设计
- 2025年山东省临沂市临沭县数学三年级第二学期期中复习检测试题(含答案解析)
- 2026酒店住宿行业竞争态势与未来增长潜力分析报告
- 2026中国物流园区智慧交通系统建设与运营效率提升报告
- 2026以色列沙漠农业技术推广应用行业政策支持力度评估及节水灌溉系统研发成果转化分析报告
- 《0~18岁儿童精准营养补充指南》解读
- 《电气工程》课件
- DB11-T 1166-2024 城市轨道交通运营安全管理规范
- 《可见-近红外地物光谱仪》
- 统编版(2024年新版)七年级上册历史期末复习全册知识点提纲详细版
- TB 10012-2019 铁路工程地质勘察规范
- 19J102-1 19G613混凝土小型空心砌块墙体建筑与结构构造
- 《我家漂亮的尺子》课件-定稿
- 10000以内加减法混合竖式题
- 河北省社区工作者管理办法试行
- 妇幼健康培训课件
评论
0/150
提交评论