![background image](http://html1.mh-extra.com/html/aandd/ad-8552eip/ad-8552eip_instruction-manual_3074539022.webp)
22
9-6
Operating example
(
When connected to the AD-4212C/AD-4212D
)
This is the procedure for performing basic operations on the weighing device via EtherNet/IP communication.
(
Describes the case where a weighing device is connected to CH1. When using CH2, 3, 4, make the data layout correspond to the relevant CH (channel).
)
■
How to read the weighing value (Weighing device CH1))
Steps
Items
Contents
Input data layout
(Instance150, Attribute3)
Output data layout
(Instance100 ,Attribute3)
Status confirmation contents
AD-4212C
AD-4212D
1
Confirmation of decimal point
position
Refer to the corresponding data layout.
Byte 6,7
[CH1 Decimal point position]
Confirm the decimal point position
eg) 0x0003
→
Decimal point 3 digits
2
Confirmation of weighing unit
Refer to the corresponding data layout.
Byte 8,9
[CH1 Weighing unit]
Confirm the corresponding unit of
weighing value
eg) 0x0000
→
Unit
:
g
3
Confirmation of weighing value
※
1
Refer to the corresponding data layout.
Byte 0-3
[CH1 Weighing value]
Confirm the weighing value
eg) 0x00BC614E
→
12345678
Byte 4,5
[CH1 Status information]
Confirm the status information
eg) 0x0000
→
Stable weighing value
4
Determines the measured value
by steps 1 to 3
eg)
12345.678 g (stable)
5
Repeat steps 3 to 4.
※
2
※1.
Be sure to read "Weighing value" and "Weighing value status information" at the same time. If they are read separately, the correspondence
between the "weighing value" and the "weighing value status information" may differ depending on the update timing, so the weighing value status
cannot be determined accurately.
※2.
If you change the decimal point position or unit, or if you want to use the smart range function, perform steps 1 and 2 as necessary.
■
Execution example of rezero (zero reset) (Weighing device CH1)
Steps
Items
Contents
Input data layout
(Instance150 ,Attribute3)
Output data layout
(Instance100 ,Attribute3)
Status confirmation contents
AD-4212C
AD-4212D
1
Instructs to start rezero
Sets "1" to the corresponding data layout Byte 0,1 [CH1 Command]
Bit 3 (“R” command)
2
Confirms to start of rezero
Refer to the corresponding data layout.
Byte 4,5
[CH1 Status information] bit3
Waits until bit3 changes from 0 to 1
※3
3
Confirms during rezero
Refer to the corresponding data layout.
Byte 4,5
[CH1 Status information] bit3
Waits until bit3 changes from 1 to 0
4
Confirms the completion of
rezero
Refer to the corresponding data layout.
Byte 0 to 3
[CH1 Weighing value]
Confirms to become 0x00000000
※4
5
Command clear
Sets "0" to the corresponding data layout Byte 0,1 [CH1 Command]
Bit 3 (“R” command)
※
3
.
Normally, changes immediately after setting "1" to the corresponding data layout in the previous step.
When the weighing value is stable, rezeroing is completed instantly and bit3 returns to "0", so the "1" state may not be read depending on the reading timing.
※
4
.
If weighing value is unstable, re-zero cannot be executed. Be sure to confirm completion of re-zero by confirming that the weighing value is
“0x00000000”.