下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
ReadControlOutputData:
ReadsthestatusofthecontrolStart Busy
Unit
BusySerialPort SensorCH
NormalErrorEndFilename
CPUUnit CS1*-CPU**HUnitversion3.0orhigherCJ1*-CPU**HUnitversion3.0orhigherCJ1M-CPU**Unitversion3.0orhigherCP1L(except10points
CS1W-SCB21-V1andCS1W-SCB41-V1UnitVersion1.2orhigherVersion5.0orhigherfor
Canbeusedfor1:NconnectionsontrollerconstitutionofthesensorCommunicationsmustbewithinon workandcannotcrosstoanothe CommunicationsSettingsThecommunicationsettingsoftheserialport(SerialGateway)mustbethesameasthoseoftheSmartThecommunicationsettingsofthespecifiedserialportcanbesettothedefaultSmar sorsettings(thefactoryshipmentvalue)usingtheSetCommunicationsPort( m)functionblock,andtheotherSmar sorsettingsusingtheSetSerialGatewayMode(_SCx604_SetPortGATEWAY)functionblock.CPUUnitPCSystemSetup:SharedSettingsforCommunicationsInstructionsinCommunicationsInstructionResponseTimeoutTime(default:2s)5 Numberofretries(default:0)SharedResourcesWhentheStartTriggerturnsON,thestatusofthecontroloutputsarereadfortheSmar sorconnectedtotheSerialPortspecifiedbytheConnectionunit,SerialportNo.andSensorCHNo.ThisFBisfortheSmar sorZS-LDC.DonotuseitforotherthanZS-LDC.Ifused,theinternalparametersmayberewritten.InitializethesensorinthecasetheinternalparametersofthesensorareThisFBisprocessedovermultiplecycles.TheBUSYoutputvariablecanbeusedtocheckwhethertheFBisbeingprocessed.Becausethereisacasetogenerateatime-outerrorwhenYoustartmultipleFBsatthesametime,thisshouldbeavoided.OKorNGwillbeturnedONonlyforonecycleafterprocessingiscompleted.UsetheseflagstodetectofFBprocessing.TimeStartBusy
NormalEnd(OK)orErrorEnd(NG)
ENinput
WhenthisFBisstarted,theoutputparametersarecleared.SeetheoutputparameterswhentheOKflagturnsON.ConnectENtoanORbetweenanupwardlydifferentiatedconditionfortheStartTriggerandtheBUSYoutputfromtheFBasabove.AlwaysuseanupwardlydifferentiatedconditionforIftheinputvariablesareoutofrange,theENOFlagwillturnOFFandtheFBwillnotbeThisFBrequiresmultiplecyclestoprocess.AlwaysconnectanORludingtheBUSYoutputvariabletotheENinputvariabletoensurethattheFBisprocessedtoacompletion(seeSymbol).DonotturntheBUSYoutputvariableONorOFFoutsidetheUpto3secondsmayberequiredforthisFBtobecompleted(i.e.,fromENturningONuntiltheOKorFlagturnsASmarsorisconnected1:Ntotheserialport1onaSerialCommunicationsBoard(SCB).WhenbitAturnsON,thecontroloutputsstatusoftheSmarsorisstoredinD0. SerialPort SensorCHNo. BitC sZS-LSeries sorLaserTypeUser’sZSSeries sorCommunicationCommandTTInputVariablesData1(ON):FB0(OFF):FBnotUnitAsSpecifytheUnitandtheserialOnlyserialport2ofCP1H/CP1LM-typeCPUunitispossibletousethisFB.ConnectedtoCPUUnit Serialport Not(CP1H/CP1L-M:SerialPort2CP1L-L14/20:SerialPort1)ConnectedtoSerialCommunicationBoard(SCB)Unitselection SerialportNo. &1:SerialPort1&2:SerialPortConnectedtoSerialCommunicationUnit SCUUnitNo.(&0toSerialportNo. &1:SerialPort1&2:SerialPortSerialPort&1toSensorCH&0toSpecifytheCHNo.oftheOutputData(Maybe1(ON):FBprocessed0(OFF):FBnotprocessedorendedinanBusyAutomaticallyturnsOFFwhenprocessingisNormalTurnsONonlyforonecyclewhenprocessingendsErrorTurnsONonlyforonecyclewhenprocessingendsinanerror. &0:All&1:LowoutputON&2:PassoutputON&3:HighoutputInternalInternalvariablesarenotoutputfromtheIftheNGFlagfromtheFBturnsON,thefollowinginternalvariablescanbemonitoredtoobtaininformationontheDataErrorTheresultsinformationfromtheSmarsorisoutputtotheErrorCode.SeeErrorCodeNormalReadReadModeThesensor’soperationmodeisnotintheRUNVersionOriginalThisisareferencethatexinsthefunctionblockItdoesnotexintheoperationallimitationsofUnits,components,orcombinationsofUnitsandcomponents.AlwaysreadandunderstandtheOperationsforthesystem’sUnitsandothercomponentsbeforeusingthem._ZSL204_開始觸發(fā)忙標(biāo)志串行端口編號單元選擇忙標(biāo)志正常結(jié)束傳感器CH編號錯(cuò)誤最終結(jié)果Lib\FBL\omronlib\Smarsor\ZSL\_ZSL204_ReadOutputs10.cxf智能傳感器ZS-LDU單元CS1*-CPU**H3.0CJ1*-CPU**H3.0CJ1M-CPU**元版本3.0或更高版本CP1HCP1L(10點(diǎn)CPU除外)CS1W-SCU21-V1、CJ1W-SCU21-V1、CJ1W-SCU41-V11.2SCB21-V1CS1W-SCB41-V11.2CX-Programmer5.0高版本外部連接可用于傳感器側(cè)控制器構(gòu)成中的1:N連接??梢允褂迷O(shè)置通信端口( m)函數(shù)塊將指定串行端口的通信設(shè)置設(shè)置為默認(rèn)智能傳CPUPC:FB(默認(rèn)值:2)建議5秒重試次數(shù)(默認(rèn)值:0)共享資源通信端口(邏輯端口)當(dāng)啟動(dòng)觸發(fā)器轉(zhuǎn)動(dòng)時(shí)ONCH該FB適用于智能傳感器ZS-LDC。請勿將其用于ZS-LDC以外的用途。如果使用, FBBUSYFB由于同時(shí)啟動(dòng)多個(gè)FB時(shí)可能會(huì)產(chǎn)生超時(shí)錯(cuò)誤,因此應(yīng)避免這種情況。ONOFFONOFF(OK)ON(NG)OFF動(dòng)本FB時(shí),輸出參數(shù)將被清除。OKONENFBBUSY間的OR(或),如上所述。EN如果輸入變量超出范圍,ENOOFF,F(xiàn)B_ZSL204_以確保FB處理完成(請參見符號)?!BBUSYONOFF。其他。該FB完成可能需要最多3秒(即從EN變?yōu)镺N到OK或NG標(biāo)志變?yōu)镺N)。1:N(SCB)1AON,智能傳感器的控制輸出狀態(tài)存儲(chǔ)在D0中。連接單元:SCB(#BBBB)串口號:1SCBSCUCPU1:NCH2BitA_ZSL204_ReadOutputs(BOOL)BOOL)ENENO志#BBBB(INT)(BOOL)BitBBitB串行端口編號UnitSelectBUSY&1(INT)(BOOL)BitC傳感器CH編號PortNoOK錯(cuò)誤結(jié)束&2(INT)(BOOL)BitDSensorChNoNGResult(DINT)D0Result相關(guān)手冊ZS-L系列智能傳感器激光型用戶手冊(Z208)ZS_ZSL204_ENENBOOL1(ON):FB(OFF):FB單位選擇UnitSelectINT&0CP1H/CP1LM型CPU單元的串行端口2可以使用該FB。。連接到CPU#FFFF串行端口號未訪問。(CP1H/CP1L-M:串2CP1L-L14/201)。連接到串行通信板(SCBBBBB&1:串行端口1&2:串行端口2連接到串行通信單元(SCU)單元選擇SCU單元
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年外研版八年級歷史上冊月考試卷含答案
- 2025年粵教新版九年級歷史下冊階段測試試卷
- 2025年人教版選修6歷史下冊階段測試試卷含答案
- 2025年湘教新版選修2地理上冊月考試卷含答案
- 2025年粵教版九年級科學(xué)上冊階段測試試卷含答案
- 2025年冀教版九年級生物上冊階段測試試卷含答案
- 2025年滬教版八年級地理下冊階段測試試卷
- 2025年度跨境電商農(nóng)產(chǎn)品進(jìn)出口代理服務(wù)合同范本4篇
- 二零二五年度企業(yè)年會(huì)禮品贊助合作合同協(xié)議書4篇
- 二零二五年度南海區(qū)勞動(dòng)就業(yè)服務(wù)中心農(nóng)村勞動(dòng)力轉(zhuǎn)移就業(yè)合同4篇
- 中華人民共和國保守國家秘密法實(shí)施條例培訓(xùn)課件
- 管道坡口技術(shù)培訓(xùn)
- 2024年全國統(tǒng)一高考英語試卷(新課標(biāo)Ⅰ卷)含答案
- 2024年認(rèn)證行業(yè)法律法規(guī)及認(rèn)證基礎(chǔ)知識 CCAA年度確認(rèn) 試題與答案
- 皮膚儲(chǔ)存新技術(shù)及臨床應(yīng)用
- 外研版七年級英語上冊《閱讀理解》專項(xiàng)練習(xí)題(含答案)
- 2024年遼寧石化職業(yè)技術(shù)學(xué)院單招職業(yè)適應(yīng)性測試題庫必考題
- 上海市復(fù)旦大學(xué)附中2024屆高考沖刺模擬數(shù)學(xué)試題含解析
- 幼兒園公開課:大班健康《國王生病了》課件
- 小學(xué)六年級說明文閱讀題與答案大全
- 人教pep小學(xué)六年級上冊英語閱讀理解練習(xí)題大全含答案
評論
0/150
提交評論