Chapter 6 Applied Instructions The example and timing diagram for the flag state switching are shown below. TPO EN D 1 M0 M0 D100 D100 1 2 3 M100 1 D 2 S M100 4. The switch flag D 2 is affected by the PLC scan time. If the time for switching to the next output number is shorter than the scan time, the flag for switching to the output number may not reset to OFF. 5. The instruction cannot be used in the ST programming language, interrupt tasks or function block which is called only once. Example 1: 1. Enable the mechanical unit conversion function 2. Set the position planning table and download the parameters The target position is 2000 (Unit:mm).
After converting in the position planing table, 400,000 output pulses 6_ are downloaded and saved in the PLC. 3. When M0 is ON, Y0 outputs 400,000 pulses at 100kHz. After the output completes, M100 is ON. 6-851