407
The comparison value of workpiece m entering station n = the grab count value of
workpiece m (at the rising edge) + the reference value of station n + the workpiece
entering deviation value of station n.
The departure comparison value is automatically calculated and stored in the D1 data
area when the falling edge of the input signal is triggered by the corresponding
workpiece. The departure comparison value of the station is generally:
The comparative value of workpiece m leaving station n = the grab count value of
workpiece m (at the falling edge) + the reference value of station n + the workpiece
leaving deviation value of station n.
D2: continuously occupy n coils (corresponding to the number of n stations), and only Y
and M coil outputs can be specified to judge whether the corresponding workpiece enters
and leaves the station. When the command is executed, each station will judge whether
the corresponding workpiece enters and leaves the station according to the set
comparison value according to the follow index value. When the real-time count value of
the corresponding workpiece is ≥ the enter comparison value, the corresponding output
point is set to on, and the follow index value is automatically increased by 1; When the
real-time count value of the corresponding workpiece ≥ leaves the comparison value, the
corresponding output point is set to off, and the following index value automatically
increases by 1, but it will not exceed the forward index value.
There is no limit on the number of times MSc instructions are used, but if the same high
counter needs to be used in the program, each instruction must be placed in a different
process, and only one instruction can be executed at a time.
Before the instruction is executed, please confirm whether the high-speed counter used
overflows (it can be judged by the high-speed count overflow flag bit sm130, etc.) and
make corresponding treatment.
When the precondition of MSC is disconnected and reconnected, the values in D1 and
D2 storage areas will be cleared to 0 and set to off.
Procedure example
For example, the existing five workpieces need to be processed through three stations. The
trigger input signal is X4, the encoder signal input point is X0 (the corresponding high-speed
tudonghoatoancau.com