The online help defines the valid data
types and addresses for each PLC. For example for a 484 series PLC:
Data Types Address Format Citect Data Type
Data
Types
|
Address
Format
|
Citect Data
Type
|
DIGITAL
|
|
|
Output Coils
|
00001 to 09999
|
DIGITAL
|
Input Status
|
10001 to 19999
|
DIGITAL
|
INTEGER
|
|
|
Input Registers
|
30001 to 39999
|
INT / LONG / STRING /
REAL
|
Output Registers
|
40001 to 49999
|
INT / LONG / STRING /
REAL
|
|
|
|
EXAMPLES:
|
|
|
Data Type
|
DIGITAL
|
|
Address
|
00001
|
|
Comment
|
Output Coil
00001
|
|
When addressing Output Coils it is necessary to include leading
zeros in the variable tag address as per the example. Citect uses
the first digit to determine the data type. For example if defining
a tag at address 1454 ensure you define the address as 01454. If
you do not then the compiler will detect the leading digit which in
this instance is 1 and will incorrectly interpret the following
characters to reference an Input status. Hence Citect will attempt
to write to register 10454 which is an input coil (ie read only)
and will result in the aforementioned hardware alarm. Similarly
Citect will be displaying data from registers in a different range
to those which you think you are referencing, hence yielding
unexpected results.
For information on the modbus 6-digit addressing scheme, refer to
seperate KB article Q2800. |