Samples
12-12
FM 351 Positioning Module
C79000-G7076-C351-02
Operation:
The CPU is in the STOP mode. Open the variable table USER_VAT, adapt the
incremental dimensions (”USER_DB”.TRG_INC_1, “USER_DB”.TRG_INC_2), the
switch over difference (“USER_DB”.CHGDIF) and the switch-off difference
(“USER_DB”.CUTDIF) to your system and transferee the control values.
Start the CPU (STOP > RUN-P). Watch the step number of the sequence
(“USER_DB”.STEPNO), the return signals, and the actual values. After
initialization, a “relative incremental approach” is executed. The drives moves in a
negative direction to its first position (“USER_DB”.TRG_INC_1).
The program then waits in step 6 for an external trigger
(“USER_DB”.START_INC_2), to trigger the next incremental approach in the plus
direction. When the position is reached, the sequence of steps is located at its final
value (–2). The incremental approach with incremental dimension number 255
allows the transfer of the switch over and switch-off difference. This allows you to
test the final target approach.
You can repeat execution of the sequence of steps by triggering a new start (STOP
> RUN-P) on the CPU. This method is, of course, not suitable for continuous
operation. The aim in the example, is to reinitialize the module each time.
Error Evaluation:
If an error occurs during execution, the sequence of steps is stopped. The value –1
is entered as the step number.
Try to create errors that are entered in the “USER_DB”.ERR bit as group errors by
the central error evaluation.
• In USER_VAT, activate the prepared control value for incremental dimension
number 1 (“USER_DB”.TRG_INC_1), that is higher than the software limit
switch.
The sequence of steps is stopped, –1 is displayed as the step number. Check
the error using the error evaluation dialog.
• In USER_VAT, activate further control values for incremental dimension number
1 (“USER_DB”.TRG_INC_1) one after the other, incremental dimension number
255 (“USER_DB”.TRG_INC_2), or the switchover difference
(“USER_DB”.CHGDIF) and switch-off difference (“USER_DB”.CUTDIF). Check
the error in the same way as for incremental dimension 1.