2-6. Usage Example of FB Component
FB “Absolute Move”
FB Name
_NCx011_MoveAbsolute_DINT
File Name _NCx011_MoveAbsolute_DINT10.cxf
Functional Overview
Positions using an absolute move.
Program Example
Servo motor (1-axis) connected to NCx of unit number 0 is moved to position of 2000
(command unit) with speed of 2000 (command unit/s) by absolute move command.
After normal move, W1.02 is set to ON.
If an error occurs by any reason, W1.04 is set to ON.
If the origin is not determined, MoveAbsolute cannot be executed. Perform origin search
and determine the origin before.
[Notice]
NCx
CPU
Servo Motor
Axis 1
Unit No.: 0
&0
Always ON(P_On)
W1.00
W1.02
Start
W1.01
Start
W1.02
Done
W1.04
Error
W1.03
Command
Aborted
Servo Motor: 1
Axis 1
Unit No.
&0
Axis No.
&1
Start
W1.01
Position command
2000 pulses
→
+2000
Speed command
20000 pps
→
&20000
Acceleration time
100 ms
→
&100
Deceleration time
200 ms
→
&200
Model selection
&2
Positioning completed
W1.02
Abort
W1.03
Error flag
W1.04
Error code
(May be omitted.)
_NCx011_MoveAbsolute_DINT
(BOOL)
EN
(BOOL)
ENO
(INT)
UnitNo
(BOOL)
Done
(INT)
Axis
(BOOL)
Command Aborted
(BOOL)
Execute
(BOOL)
Error
(DINT)
Position
(WORD)
ErrorID
(DINT)
Velocity
(DINT)
Acceleration
(DINT)
Deceleration
(INT)
Select
2-5 Position Control Unit
CS1W-NC113/133/213/233/413/433
Summary of Contents for FB LIBRARY -
Page 1: ......
Page 14: ...2 1 Controller Link Unit CJ1W CLK21 V1...
Page 23: ...2 2 DeviceNet Slave DRT2 Series DRT2...
Page 31: ...2 3 Position Control Unit CJ1W NCF71...
Page 42: ...2 4 Position Control Unit CJ1W NC113 133 213 233 413 433...
Page 49: ...2 5 Position Control Unit CS1W NC113 133 213 233 413 433...
Page 57: ...2 6 Inverter 3G3MV A2 AB A4 3G3RV A2 A4...
Page 71: ...2 7 Servo Driver R88D WT WT H WT HL R7D AP H AP L...
Page 84: ...2 8 RFID ID Sensor V600 H...
Page 95: ...2 9 Vision Sensor F160 C10...
Page 105: ...2 10 2D Code Reader V530 R2000 R160 R150V3...
Page 118: ...2 11 Smart Sensor ZX SF11 ZX LD40 ZX LDA11 N...
Page 129: ...2 12 Temperature Controller E5ZN 2...
Page 139: ...2 13 Temperature Control Unit CJ1W TC001 101 003 103 002 102 004 104...