講義分析教案_第1頁
講義分析教案_第2頁
講義分析教案_第3頁
講義分析教案_第4頁
講義分析教案_第5頁
全文預(yù)覽已結(jié)束

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

ReadsthevaluetheSmarStartBusySerialPort BusyFlagErrorendFileLib\FBL\omronlib\LaserSensor\ZXL\ZXL208LaserCPUCS1*-CPU**HUnitversion3.0orhigherCJ1*-CPU**HUnitversion3.0orhigherCJ1M-CPU**Unitversion3.0orhigherCP1L(except10pointsVersion5.0orforusageCanbeusedonlyfor1:1(FB"_ZXLN***"canbeusedfor1:NCommunicationsmustbewithinon workandcannotcrosstoanothe CommunicationsSettingsThecommunicationssettingsoftheserialportmustbethesameasthoseoftheLaserThecommunicationssettingsofthespecifiedserialportcanbesettothedefaultLaserSensorsettingsusingtheSetCommunicationsPort(_ZXL600_SetComm)functionblock,andtheotherLaserSensorsettingsusingtheSetSerialGatewayMode(_SCx604_SetPortGATEWAY)functionblock.CPUUnitPLCSetup:SharedSettingsforCommunicationsInstructionsin 5sNumberofretries(default:0)SharedResourcesWhentheStartTriggerturnsON,thelowthresholdvalueisreadfromtheSmarsorconnectedtotheSerialPortspecifiedbytheConnectionunitandSerialportNo.ThethresholddatareadwiththisFBdoesnotludethedecimalpointUsetheReadDecimalPointPositionFB(_ZXL202_ReadDecimalPoint)toreadthedecimalThisFBisprocessedovermultiplecycles.TheBUSYoutputvariablecanbeusedtocheckwhethertheFBisbeingprocessed.OKorNGwillbeturnedONonlyforonecycleafterprocessingiscompleted.UsetheseflagstodetectoftheFBprocessing.TimeStartBusyNormalEnd(OK)orErrorEnd(NG)WhenthisFBisstarted,theoutputparametersarecleared.SeetheoutputparameterswhentheOKflagturnsON.ENinputConnectENtoanORbetweenanupwardlydifferentiatedconditionforthestarttriggerandtheBUSYoutputfromtheFB.AlwaysuseanupwardlydifferentiatedconditionforIftheinputvariablesareoutofrange,theENOFlagwillturnOFFandtheFBwillnotbeThisFBrequiresmultiplecyclestoprocess.AlwaysconnectanOR ludingtheBUSYoutputvariabletotheENinputvariabletoensurethattheFBisprocessedtocompletion(seeSymbol).DonotturntheBUSYoutputvariableONorOFFoutsidetheUpto3secondsmayberequiredforthisFBtobecompleted(i.e.,fromENturningONuntiltheOKorNGFlagturnsON).ASmarsorisconnected1:1toserialport1onaSerialCommunicationsBoardWhenbitAturnsON,thevalueofthelowthresholdoftheSmarsorisstoredinD0andD1.Ifthestoredvalueis&30000andthedecimalpointpositionis&1,theactualvalueis3.0000.Connectionunit:SCBSerialPortNo.: 1:1BitProcessingtoreaddecimalpointBit Unit BusyBit BitSerialPort Normal BitD Bit sZX-L-NSeriesSmar sorsLaserTypeUser’s(Z197)ZXSeriesSmar sorsOperation(Z157)ReadHighThresholdInputVariables1(ON):FB0(OFF):FBnotUnitAtSpecifytheUnitandtheserialOnlyserialport2ofCP1H/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&1toOutput(Maybe1(ON):FBprocessed0(OFF):FBnotprocessedorendedinanBusyAutomaticallyturnsOFFwhenprocessingisTurnsONforonecyclewhenprocessingendsErrorTurnsONforonecyclewhenprocessingendsinan19999OutputsthevalueofthelowInternalInternalvariablesarenotoutputfromtheIftheNGFlagfromtheFBturnsON,thefollowinginternalvariablescanbemonitoredtoobtaininformationontheErrorTheresultsinformationfromtheSmarsorisoutputtotheErrorCode.SeeErrorCodeAsettingisorrect.RefertotheSmarsorOperationforsettingerrorconditionsforthresholds,hystereses,andotherparameters.TheSensorisnotinRUNThisisareferencethatexinsthefunctionblockItdoesnotexintheoperationallimitationsofUnits,components,orcombinationsofUnitsandcomponents.AlwaysreadandunderstandtheOperationsforthesystem’sUnitsandothercomponentsbeforeusingthem.符號開始觸發(fā)_ZXL208_ReadLowThreshold(BOOL)(BOOL)↑ENENO單元選擇(INT)(BOOL)BusyFlagBUSYBusyFlag(INTBOOL)PortNoOK(BOOL)NGError結(jié)束(DINT)閾值閾值文件名Lib\FBL\omronlib\LaserSensor\ZXL\_ZXL208_ReadLowThreshold10.cxf適用型號激光傳感器ZX-LDA-NCPUCS1*-CPU**H3.0CJ1*-CPU**H3.0CJ1M-CPU**單元版本3.0或更高版本CP1HCP1L(10點(diǎn)CPU除外)串行通信單元/板CS1W-SCU21-V1、CJ1W-SCU21-V1、CJ1W-SCU41-V1單元版本1.2或更高版本CS1W-SCB21-V1和CS1W-SCB41-V1單元版本1.2或更高版本CX-Programmer版本5.0或更高版本使用條件外部連接。只能用于1:1連接。(FB“_ZXLN***”可用于1:N連接)。通信必須在一個網(wǎng)絡(luò)內(nèi)進(jìn)行,不能跨越另一個網(wǎng)絡(luò)。通訊設(shè)置串口通訊設(shè)置必須與激光傳感器的通訊設(shè)置一致。??梢允褂肧etCommunicationsPort(_ZXL600_SetComm)功能塊將指定串行端口的通信設(shè)置設(shè)置為默認(rèn)激光傳感器設(shè)置,并使用SetSerialGatewayMode(_SCx604_SetPortGATEWAY)功能塊設(shè)置其他激光傳感器設(shè)置。CPU單元設(shè)置PLC設(shè)置:FB中通信指令的共享設(shè)置。通信指令響應(yīng)超時時間(默認(rèn):2秒)建議5秒。重試次數(shù)(默認(rèn)值:0)共享資源。通信端口( FBFB(_ZXL202_ReadDecimalPoint)讀取小數(shù)點(diǎn)。FB。該FB經(jīng)過多個周期處理。BUSY輸出變量可用于檢查預(yù)防措施FB是否正在處理。。OKONOFFONOFF(OK)ON(NG)OFFFB出參數(shù)將被清除。OK標(biāo)志置ON時查看輸出參數(shù)。ENENFBBUSYORENENOOFFFB以確保FB處理完成(請參見符號)。。請勿在FB外部打開或關(guān)閉BUSY輸出變量。_ZXL208_ReadLowThreshold其他FB3(ENONOKNGON)1:1(SCB)1AOND0D1&30000,小數(shù)點(diǎn)位置為&1,則實際值3.0000。連接單元:SCB(#BBBB)串行端口號:1SCBCPUSCU1:1連接智能傳感器BitA處理讀取小數(shù)點(diǎn)位置BitB_ZXL208_ReadLowThreshold(BOOL)(BOOL)ENENO(INT)BOOL)BitCBBBBBUSYBitC(INT(BOOL)&1PortNoOKBitDBOOL)NGBitEDINT)ZX-L-NZ197)ZX(Z157)相關(guān)FB讀取小數(shù)點(diǎn)FB(_ZXL202_ReadDecimalPoint)讀取高閾值_ZXL208_ReadLowThresholdENENBOOL1(ON):FB(OFF):FBUnitSelectINT&0CP1H/CP1LMCPU端口2可以使用該FB。。連接到CPU單元單元選擇#FFFF串行端口號未訪問。(CP1H/CP1L-M:串行端口2CP1L-L

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論