406
D1: continuously occupy 2n 16 bits registers (single word), 2m × n 32-bit registers
(double word) are used to store the workpiece forward index value, follow index value,
entry comparison value and departure comparison value of each station. The specific
register address allocation is as follows:
Workpiece 1 entry
comparison
value(double word)
Workpiece 1
departure
comparison value
(double word)
Workpiece m entry
comparison
value(double word)
Workpiece
mdeparture
comparison
value(double word)
Note: D1 occupies a large storage area, please confirm whether the register space is enough.
If it is not enough, PLC will only store data in the effective area, and will not generate alarms
and prompts.
When the entry comparison value and the exit comparison value of a station are both
0, it means that the comparison action of the station is not executed.
The forward index value will automatically increase by 1 when triggering each rising
and falling edge of the input signal (if the filtering time is > 0, wait for the filtering time
and then increase by 1), and the method of cyclic accumulation is adopted. For example,
when the maximum number of workpieces processed is m = 10, the forward index value
will cycle by 0, 1, 2, 3... 19, 0, 1, 2, 3... 19 (the initial value is 0). Since the forward index
value will increase by 1 at both rising and falling edges, the maximum forward index
value is 2*m。
Note: the following index value will be judged before adding 1 to the forward index value.
If the value after adding 1 is equal to the following index value, the forward index value
will not be accumulated and the comparison value this time will be recorded.
Follow the index value will automatically add 1 when the workpiece enters and
leaves the station. Generally, after the workpiece has completed a station, the following
index value of the corresponding station is even.
The entry comparison value is automatically calculated and stored in the D1 data area
when the corresponding workpiece triggers the rising edge of the input signal. The entry
comparison value of the station is generally:
tudonghoatoancau.com