小弟最近遇到的关于Simens PLC的难题,请各位大虾指点,不胜感激!
设备控制系统硬件构成:Simens PC 677B+CPU314+CP341+CP343+I/O
编程的命令和Simens 300似乎也不一样,小弟摘选了下面一段程序,请各路大虾指点!
编程语言如下:
INITIALISATION AT FIRST PROGRAM SCAN.
|?---------------------------------------------------
IFN S4,0
JPC FINEINI$36
| Impulse signals duration for "SES" serialization system.
LX KT100,0
TX DW320
| Data valid signals arrival from "SES" SERIALIZATION SYSTEM timeout.
LX KT50,1
TX DW321
| SES: 'CASE COMPLETE' delay after 'PRINT CASE LABEL DATA' phase
LX KT100,0
TX DW334
FINEINI$36:
|?---------------------------
| ^ RESET MESSAGES ON DISPLAY
|?---------------------------
|N.B.: The messages on the display are cleared when the reset
; in progress memory is set high. Each programming block
; manages the set/reset of the messages handled in
; it.
IF M21,7
R MES52,3
| The signal timing errors are reset only if the SES outputs are
; reset.
AN I4,0
AN I4,1
| Se ?richiesto di rimuovere i prodotti si attende la conferma
; dell'operatore e la verifica della rimozione dei prodotti
; tramite la fotocellula di carico minimo.
AN VAR24,2
(
IFN M407,5
ON I27,2
)A
R MES52,4
R M407,5
| The reading error message is reset only if the minimum load sensor is not
; covered and product removal has been confirmed.
IF M21,7
AN VAR24,2
AN I27,2
R MES52,5
| The message is reset only if the case presence at labeller photocell is not
; covered and case removal has been confirmed
IF M21,7
R MES53,1
AN VAR24,3
AN I48,3
R MES53,2
| If the case removal message is present and the case presence photocell
; is still covered, case removal confirmation window vision
; is reconfirmed.
IF MES53,2
A I48,3
S VAR24,3
|?----------------------------------------------------
| ^ RETIMED MACHINE CONDITION MANAGEMENT
|?----------------------------------------------------
IF M4,6
AN M362,2
= M339,0
IF M4,6
= M362,2
IF M339,0
A DH240,1
S Q6,2
S Q6,3
S Q6,4
S MES53,1
S MES53,2
S VAR24,3
| If the machine is not retimed all the non-impulsive outputs are reset too.
R Q5,1
R Q5,7
|?-----------------------------------
| ^ CASE PACKER STOP MANAGEMENT FOR SERIALIZATION ALARMS
|?-----------------------------------
IFN DH240,1
JPC NO_SES$36
| The CASE INFEED station READY state check is
; always performed. Even if no cycles are in progress yet.
IFN I4,2
A M4,6
S MES52,3
|?----------------------------------------------------
| ^ - Alarms that provoke only the machine stop:
IF MES52,3
O MES52,4
O MES52,5
O MES53,1