Mitsubishi Electronics MELSEC Q series MELSEC L series 사용자 설명서

다운로드
페이지 412
5-58
5.2 Positioning Instruction
5.2.2 PSTRT instruction
ZP_PSTRT1
Control Data
Program Example
The following program executes the positioning start of the positioning data number 1 when 
X100 turns ON.
[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;
Device
Item
Setting data
Setting range
Setting side
[0]
System area
[1]
Completion status
The instruction completion status is stored.
• 0 
: Normal completion
• Other than 0 : Error completion (error code)
System
[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
s
s
s
Positioning start 
pulse
Sets start signal 
number 1
Turns positioning 
start instruction 
memory ON
Performs 
positioning start
Turns positioning 
start instruction 
memory OFF