Mitsubishi MELSEC-L series Programming Manual page 284

Hide thumbs Also See for MELSEC-L series:
Table of Contents

Advertisement

ZP_PSTRT1
Control Data
Device
Item
System area
[0]
s
Completion status
[1]
s
Start No.
[2]
s
Program Example
The following program executes the positioning start of the positioning data number 1 when
X100 turns ON.
[Structured ladder]
[ST]
PLS(X100, Var_Flag_Inst);
IF(Var_Flag_Inst=TRUE)THEN
END_IF;
IF(Var_Flag_Mem=TRUE)THEN
ZP_PSTRT1(TRUE, "00", Var_ControlData, Var_Result);
RST(TRUE, Var_Flag_Mem);
END_IF;
5.5 Positioning Instruction
5-238
5.5.2 PSTRT instruction
The instruction completion status is stored.
• 0
• Other than 0 : Error completion (error code)
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
MOVP(TRUE, 1, Var_ControlData[2]);(* Sets start signal number 1 *)
SET(TRUE, Var_Flag_Mem);
Setting data
: Normal completion
(* Positioning start pulse *)
(* Turns positioning start instruction memory ON *)
(* Positioning start instruction memory ON *)
(* Performs positioning start *)
(* Turns positioning start instruction memory OFF *)
*1
Setting range
Setting side
System
1 to 600,
7000 to 7004,
User
9001 to 9004
Positioning start
pulse
Sets start signal
number 1
Turns positioning
start instruction
memory ON
Performs
positioning start
Turns positioning
start instruction
memory OFF

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q series

Table of Contents