S.pgs Program Setter - Mitsubishi MELSEC-Q series Programming Manual

Process control instructions
Hide thumbs Also See for MELSEC-Q series:
Table of Contents

Advertisement

S.PGS
9.23
S.PGS
Program Setter
9.23
S.PGS
S.PGS
Structured ladder/FBD
EN
s1
s2
Input argument
EN
S1
S2
Output argument
ENO
D1
D2
Setting
Internal devices
data
Bit
Word
––
S1
––
D1
––
S2
––
D2
*1
Special register SD1506 can be specified as a dummy device.
Function
Provides a control output according to the SV and MV pattern.
As the output types of the S.PGS instruction, there are three types of the "hold type", "return type" and "cyclic type".
• Hold type
: Output is provided with the SV10 value held.
• Return type : The set value (SV) is set to 0 and the last value is output as the manipulated value (MV).
• Cyclic type : After SV1 to SV10 have been processed, processing is restarted from SV1 and the output is provided.
MV
, MV
5
MV
, MV
3
MV
, MV
7
MV
, MV
1
MV
, MV
9
188
Ladder diagram
Start contact
S_PGS
ENO
d1
d2
: Execution condition
: Dummy device
*1
: Dummy device
: Execution result
: Block memory start device
: Loop tag memory start device
J
\
R, ZR
Bit
MV
PGS
6
4
8
2
10
SV
SV
SV
SV
SV
1
2
3
4
5
S.PGS
S1
D1
Structured text language
ENO:=S_PGS(EN,s1,s2,d1,d2);
: Bit
: Real data type
: Real data type
: Bit
: Array of any 16-bit data (0..2)
: Array of any 16-bit data (0..127)
U
\G
Word
––
––
––
––
SV
SV
SV
SV
6
7
8
S2
D2
Zn
Constant
SV
SV
9
10
Other

Advertisement

Table of Contents
loading

Table of Contents