Omron CJ1W-C113 - REV 02-2008 Operation Manual page 222

Position control units
Table of Contents

Advertisement

Sample Program
When the starting trigger is changed from OFF to ON, the servomotor (axis 1)
connected to the Position Control Unit for unit number 0 is operated using the
ABSOLUTE MOVEMENT command.
&0
CPU
NCx
Start trigger
Bit A
Always ON (P_On)
Unit No.
Axis No.
Start
Bit A
Position command
+2000 (2000 pulses)
Speed command
+20000 (20000 pps)
Acceleration time
+100 (100 ms)
Deceleration time
+200 (200 ms)
Model selection
Unit number: 0
Servo motor: 1
Axis 1
Servo motor
Axis 1
Bit C
Bit B
_NCx011_MoveAbsolute_DINT
(BOOL)
EN
(INT)
&0
UnitNo
(INT)
&1
Axis
Command Aborted
(BOOL)
Execute
(DINT)
Position
(DINT)
Velocity
(DINT)
Acceleration
(DINT)
Deceleration
(DINT)
&2
Select
Section 7-7
Bit A
Bit D
(BOOL)
ENO
Positioning Completed
(BOOL)
Bit B
Done
Abort
(BOOL)
Bit C
Error flag
(BOOL)
Bit D
Error
Error code
(WORD)
(May be omitted.)
ErrorID
195

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents