44
5 MODULE DEDICATED INSTRUCTION
5.2 Positioning Instruction
Setting data
Program example
• The following program executes the positioning start of the positioning data number 1 when X100 turns ON.
Device
Item
Setting data
Setting range
Setting side
(s)[0]
System area
(s)[1]
Completion status
The instruction completion status is stored.
• 0: Normal completion
• Other than 0: Error completion (error code)
System
(s)[2]
Start No.
Specify the following data number to be started by the PSTRT
instruction.
• 1 to 600: Positioning data number
• 7000 to 7004: Block start
• 9001: Machine OPR
• 9002: Fast OPR
• 9003: Current value change
• 9004: Multiple axes concurrent start
1 to 600,
7000 to 7004,
9001 to 9004
User
[Structured ladder/FBD]
[ST]
PLS(X100, Var_Flag_Inst); (* Positioning start pulse *)
IF(Var_Flag_Inst=TRUE)THEN
MOVP(TRUE, 1, Var_ControlData[2]); (* Sets start signal number 1 *)
SET(TRUE, Var_Flag_Mem); (* Turns positioning start instruction memory ON *)
END_IF;
IF(Var_Flag_Mem=TRUE)THEN (* Positioning start instruction memory ON *)
ZP_PSTRT1(TRUE, "00", Var_ControlData, Var_Result); (* Performs positioning start *)
RST(TRUE, Var_Flag_Mem); (* Turns positioning start instruction memory OFF *)
END_IF;
Positioning start
pulse
Sets start signal
number 1
Turns positioning
start instruction
memory ON
Performs
positioning start
Turns positioning
start instruction
memory OFF
Содержание MELSEC System Q
Страница 1: ...MELSEC Q L Structured Programming Manual Special Instructions ...
Страница 2: ......
Страница 307: ...10 SFC CONTROL INSTRUCTION 10 2 SFC Transition Condition Comment Read 305 10 MEMO ...
Страница 309: ...I 307 MEMO ...
Страница 315: ......