CALL PLCWRITE Statement. Emerson Electronic Motion Control T-60
Publicitate
Publicitate
PLC Interface Commands CALL PLCWRITE Statement
CALL PLCWRITE Statement
Purpose:
This command is used to write value(s) to a PLC’s register(s), memory location(s), or to force one or more output bits in a PLC. Refer to the -PL5 and -SL5 for information on how to use this command with the
Allen-Bradley PLC-5 and SLC-500 processors.
Syntax:
CALL PLCWRITE(id,cmd,start address,# of registers/bits,expression/variable/array )
Comments:
id specifies the address of the PLC to which you wish to write. This number is usually 1 when interfacing to one PLC.
cmd specifies the write operation you wish to perform. See the table below for the write operation possibilities:
•
•
•
Table 6
Write Operation Options
MOD GE9 TI5
•
•
•
TI3
•
•
•
•
•
•
•
• •
•
• start address is the starting address of the bit(s) or register(s) you are interested in writing. In the case of the Modbus, this does not include a data type specifier (%, $, !, etc.)
OM1
•
•
•
•
•
PL2
•
•
•
•
•
Cmd
7
8
5
6
3
4
1
2
9
10
11
Function
Clear Status
Write Input Bit(s)
Write Output Bit(s)
Write to a Register
N/A
N/A
N/A
Write to Analog Output(s)
Write to Discrete
Internals/Coils/Relays
Write to Holding Relays (bits)
Write to Auxilary Relays (bits)
Typical Data*
Any 5 words
16 bit words
16 bit words
1 word per register
N/A
N/A
N/A
1 word per output
16 bit words
16 bit words
16 bit words
65
Descarcă
Publicitate