3 Axis Command Instructions
Operation Example
The sensor output turns ON when the sensor detects a workpiece. When the workpiece passes, the
sensor output turns OFF. When the sensor detects the next workpiece, the sensor output turns ON
again. The position of the encoder input is calculated based on the time stamp when the sensor output
turns ON. The difference between two positions is the distance between the workpieces.
Ladder Diagram
Main Variables
Name
MC_Axis000
MC_Axis001
N3_Input_Bit_00
N3_Input_Bit_00_Time_Stamp
Position
Count
FirstPoint
LastPoint
Distance
3-418
Data type
Default
_sAXIS_REF
---
_sAXIS_REF
---
BOOL
---
ULINT
---
ARRAY[ 0..1] OF
---
LREAL
ARRAY[ 0..1] OF
---
ULINT
UINT
---
UINT
---
LREAL
---
NY-series Motion Control Instructions Reference Manual (W561)
Comment
Axis Variable for axis 1.
Axis Variable for axis 2.
Device variable
Device variable
Stores the calculated positions.
Stores the number of rotations.
A variable that is used for processing.
A variable that is used for processing.
The distance between workpieces.