各位,小弟新学PLC,这是300的一个在OB100的程序,看不懂,请帮我看下解释下好吗?谢谢!
CALL "SWR_START"
AG_KENNUNG :='B' // PLC-Classification: A for Station A
DB_WORK_NO :=DB1 // Work DB for SWR
DB_SEND_NO :=DB2 // Send DB for SWR
DB_RCV_NO :=DB3 // Receive DB for SWR
MPI_ADR :=2 // MPI-address of other station
LADDR :=256 // Base address of CP
VERB_ID :=1 // Connection no. of redundancy coupling
DP_MASTER_SYS_ID:=1 // Identification of DP-mastersystem (HW-config)
DB_COM_NO :=DB5 // Instance-DB of FB 101
DP_KOMMUN :=1 // Identification of DP-master
ADR_MODUS :=1 // Interval for CPU I/Q addressing
PAA_FIRST :=0 // Address of first redundant outputbyte
PAA_LAST :=7 // Address of last redundant outputbyte
MB_NO :=20 // First flagbyte used within redundant user program
MB_LEN :=100 // Amount of flagbytes used within redundant user program
IEC_NO :=0 // First instance DB used for redundant iec counters or timers
IEC_LEN :=0 // Amount of instance DBs used within redundant user program
DB_NO :=20 // First DB used within redundant user program
DB_NO_LEN :=10 // Amount of DBs used within redundant user program
SLAVE_NO :=5 // Profibus address of first used DP-slave (IM 153-3)
SLAVE_LEN :=3 // Amount of used DP-slaves
SLAVE_DISTANCE :=1 // Configuration of IM 153-3 interface
DB_A_B_NO :=DB13 // Send DB for non redundant data from Station A to B
DB_A_B_NO_LEN :=W#16#0 // Amount of used data bytes within Send DB
DB_B_A_NO :=DB13 // Receive DB for non redundant data from Station B to A
DB_B_A_NO_LEN :=W#16#0 // Amount of used data bytes within Receive DB
RETURN_VAL :=MW2 // Block return value
EXT_INFO :=MW4 // Extended information