Positioning for PLC-S Special Program Example
Registering the Special Program
![]()
- In the Project Window, right-click Program and left-click New Program.
![]()
-
In the New Program window, left-click Positioning for PLC-S.
- Optionally, for organization, under Program Name, the name of the program and ID can be changed.
-
Left-click OK.
Configuring the Positioning Program
![]()
-
Under Start Address, select the data register section to use.
- IMPORTANT: The positioning program can reserve 20 WORDs, 10 for the X-Axis, 10 for the Y-Axis, for operation data and 30 WORDs for positioning parameters.
- In this example, D0 ~ D19 are reserved for operation data and D0 ~ D30 are reserved for positioning parameters.
- Please refer to the positioning operation data or positioning parameters pages for more information.
- In this example, D0 ~ D19 are reserved for operation data and D0 ~ D30 are reserved for positioning parameters.
- IMPORTANT: The positioning program can reserve 20 WORDs, 10 for the X-Axis, 10 for the Y-Axis, for operation data and 30 WORDs for positioning parameters.
-
To allow positioning to function, left-click the Output Pulse Type N/A Axis and select High Active or Low Active.
- This example uses High Active for the Output Pulse Type.
-
Left-click X Axis Parameter or Y Axis Parameter to configure the X or Y axis positioning parameters.
-
Left-click X Axis Position Data or Y Axis Position Data to configure the positioning data for the X or Y axis.
-
Left-click Save or OnlineModify (if the PLC-S is connected) to save any changes made to the positioning program.
-
To monitor the positioning operation, left-click Monitor.
Monitoring the Positioning Program
![]()
-
To monitor the X or Y axis, select the axis in the top-left corner.
-
To enable positioning for the X or Y axis, left-click ENABLE.
- The ENABLE box will change to DISABLE.
- This means the current axis is enabled for positioning.
- The ENABLE box will change to DISABLE.
-
To JOG forward, backward, or stop positioning, left-click JOGForward(F), JOGBackward(B), or Dec Stop(D).
- Please refer to positioning parameters for more information.
-
To initiate an emergency stop, left-click EMG Stop(S).
- This will create an error.
- The previous positioning operations are now unavailable.
- Left-click Error Reset(R) to reset the error and resume the positioning operation.
- This will create an error.
![]()
- The Current Position shows the current pulse output from the positioning operation.
- If the Current Speed is greater than 0 pulses per second, then the positioning operation is active.
Scan Program
![]()
- Create a new scan program.
- This example uses the operation data bits 0, 3, and 4 for the X-axis (offset 0).
- Left-click the open contact, M0.3, and type shift + enter.
- This will turn the contact, M0.3, ON.
- The positioning operation will JOG forward.
- This will turn the contact, M0.3, ON.
- The Current Speed is 10,000.
- The Current Position moves forward 10,000 pulses per second.
- The Forward/Backward status displays as Forward.
- Left-click the open contact, M0.1, and type shift + enter.
- This will turn the contact, M0.1, ON.
- The positioning operation will decelerate to a stop.
- This will turn the contact, M0.1, ON.
- The Current Speed is 0.
- The positioning operation has decelerated to a stop.
- The emergency stop option will halt to a stop immediately and produce an error.
- The positioning operation has decelerated to a stop.
- Left-click the open contact, M0.4, and type shift + enter.
- This will turn the contact, M0.4, ON.
- The positioning operation will JOG backward.
- This will turn the contact, M0.4, ON.
- The Current Speed is 10,000.
- The Current Position moves backwards 10,000 pulses per second.
- The Forward/Backward status displays as Backward.