omron — Programmable Terminal NA-series Practices Guide MC Test Run IAG Library

7 Details of Variable Specifications 7 - 1 Structures Registered in FB Library of NJ 39 7-1-1 Axis Information Acquire FB Variable name Data type Name Function IAG Device Info _ _ STRUCT Structures for connected device information. Axis MonitorNo _ UINT Monitor axis No. An axis number of the device to be monitored. Connect NodeNo _ Connect NodeNo ARRAY[0..199] Connected node No. Connected node No. A node number of the connected device. A node number of the connected device. OF STRING[10] Device Name _ ARRAY[0..199] Connected device name A name of the connected device. OF STRING[50] Device Count _ UINT Number of connected devices The number of the connected devices.

Axis Tbl AxisNo _ _ Axis Tbl AxisNo ARRAY[0..255] OF UINT ARRAY[0..255] OF UINT Information of connected axis A variable for retaining the valid axis number. A variable for retaining the valid axis number. No. Axis Tbl NodeNo _ _ ARRAY[0..255] OF UINT Information of node No. in order A variable for retaining the valid node number. of connected axis Select NodeNo _ ARRAY[0..199] Servo-recognized node No. Servo-recognized node No. A node number of the connected servo. OF STRING[50] First Chk _ BOOL BOOL Flag for checking the Flag for checking the connection status.

after-startup connection status 7-1-2 Manual Operation FB Variable name Data type Name Function IAG Param REF _ _ STRUCT Structures for status of jog feed. Velocity LREAL Target speed The target speed during the operation of servomotor. Acceleration LREAL Acceleration The acceleration during the operation of servomotor. Deceleration LREAL Deceleration The deceleration during the operation of servomotor. Jerk LREAL Jerk The jerk during the operation and deceleration stop of servomotor. Position LREAL Target position The target position for decelerating and stopping the servomotor. Distance LREAL Moving distance The distance for moving the servomotor.

Execute BOOL Operation start request An operation start request for the servomotor. Posi Nega _ BOOL Operation direction( The direction of rotating the servomotor. The direction of rotating the servomotor. False = Posi /True = Nega) ServoStop BOOL Servo stop request A stop request for the servomotor. ServoOn BOOL Servo ON request A request for turning ON the servomotor. Function Flg _ UINT Function flag( A selection flag for MC Test Run function to be executed. A selection flag for MC Test Run function to be executed. 1=Jog ,2=Absolute , 2=Relative ,4=Homing , ) Stop Error _ BOOL Stop error An error flag when executing the stop processing.

Abs Error _ BOOL Absolute positioning error An error flag when performing the absolute positioning. Rel Error _ BOOL Relative positioning error An error flag when performing the relative positioning. Home1 Error _ BOOL Home position 1 error An error flag when homing with external signal. Home2 Error _ BOOL Home position 2 error An error flag when homing. Stop ErrorID _ WORD Stop error code An error code when executing the stop processing. Abs ErrorID _ WORD Absolute positioning error An error code when performing the absolute positioning. An error code when performing the absolute positioning.

code Rel ErrorID _ WORD Relative positioning error An error code when performing the relative positioning. code Home1 ErrorID _ WORD Homing 1 error code An error code when homing with external signal. Home2 ErrorID _ WORD Homing 2 error code An error code when homing.