First define an Integer variable tag that
will be read from the PLC as follows:
Variable
Tag Name
|
:
IntegerTag
|
Data
Type
|
:
INT
|
IO Device
Name
|
:
IODev1
|
Address
|
:
R10
|
Raw Zero
Scale
|
: 0
|
Raw Full
Scale
|
:
32767
|
Eng Zero Scale
|
: 0
|
Eng Full
Scale
|
:
32767
|
Next define sixteen Digital variable tags which will represent
the sixteen bits read from the above integer tag as follows:
Variable Tag
Name
|
:
FirstDigitalTag
|
Data Type
|
: DIGITAL
|
IO Device Name
|
: IODev1
|
Address
|
: M1
|
Variable Tag
Name
|
:
SecondDigitalTag
|
Data Type
|
: DIGITAL
|
IO Device Name
|
: IODev1
|
Address
|
: M2
|
Variable Tag
Name
|
:
SixteenDigitalTag
|
Data Type
|
: DIGITAL
|
IO Device Name
|
: IODev1
|
Address
|
: M16
|
Next step is to ReMap the above variables (in project editor
click on Communication and then click on ReMapping) as follows:
Citect Variable
|
:
FirstDigitalTag
|
Length
|
: 16
|
Physical
Variable
|
: IntegerTag
|
Remap Read
|
: True *
|
Remap Write
|
: True *
|
This completes the ReMapping of 'IntegerTag' to the sixteen
digital tags defined above.
* Note : True for CCM9030 protocol. May not be true for other
protocols.
|