User manual

IEC61131 User and Reference Manual
April 22, 2008
590
Module
Start
Register
End
Register
DF1 Address
Range
DIN Controller digital inputs
10017
10019
257/0 to 257/2
DIAG Force LED
10020
10020
257/3
SCADAPack AOUT module
40001
40002
1536 to 1537
SCADAPack 330, SCADAPack 350 and SCADAPack 32 Controllers
In general, the cross-reference between Modbus and DF1 addressing is shown in the
following table. DF1 addresses in this table are described in the format word/bit where word
is the address of a 16-bit word and bit is the bit within that word. The bit address is optional.
Address Range
Description
Modbus
DF1
00001 to 04096
0/0 to 255/15
Digital Output Database
(single bit registers)
Modbus
DF1
10001 to 14096
256/0 to 511/15
Digital Input Database
(single bit registers)
Modbus
DF1
30001 to 39999
512 to 10510
Analog Input Database
(16-bit registers)
Modbus
DF1
40001 to 49999
10511 to 20511
Analog Output Database
(16-bit registers)
Coil Registers
To convert a Modbus coil register, ModbusCoil, to a DF1 address word/bit:
word = ( ModbusCoil - 00001 ) / 16
bit = remainder of { ( ModbusCoil - 00001 ) / 16 }
Status Registers
To convert a Modbus status register, ModbusStatus, to a DF1 address word/bit:
word = ( ModbusStatus - 10001 ) / 16 + 256
bit = remainder of { ( ModbusStatus - 10001 ) / 16 }
Input Registers
To convert a Modbus input register, ModbusInput, to a DF1 address word:
word = ( ModbusInput - 30001 ) + 512
Holding Registers
To convert a Modbus holding register, ModbusHolding, to a DF1 address word:
word = ( ModbusHolding - 40001 ) + 10511
Example
In this example the equivalent DF1 addresses are shown next to a sample SCADAPack
Register Assignment specified with Modbus addresses.
Module
Start
Register
End
Register
DF1 Address
Range
SCADAPack
5601 I/O module
digital outputs
digital inputs
analog inputs
00001
10001
30001
00012
10016
30008
0/0 to 0/11
256/0 to 256/15
512 to 519