S.mid Middle Value Selection - Mitsubishi MELSEC-Q series Programming Manual

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

Advertisement

9.15
S.MID
Middle Value Selection
9.15
S.MID
S.MID
Structured ladder/FBD
EN
s1
s2
Input argument
EN
S1
S2
Output argument
ENO
D1
D2
Internal devices
Setting
data
Bit
Word
––
S1
––
D1
––
S2
––
D2
*1
Special register SD1506 can be specified as a dummy device.
Function
Outputs the middle value between the maximum value and minimum value among the input value 1 (E1) to input value n (En).
Ladder diagram
Start contact
S_MID
ENO
d1
d2
: Execution condition
: Input data start device
*1
: Dummy device
: Execution result
: Block memory start device
*1
: Dummy device
J
\
R, ZR
Bit
S.MID
S1
D1
Structured text language
ENO:=S_MID(EN,s1,s2,d1,d2);
: Bit
: Array of any 16-bit data (0..32)
: Real data type
: Bit
: Array of any 16-bit data (0..2)
: Real data type
U
\G
Word
––
––
––
––
S.MID
S2
D2
Zn
Constant
Other
161
9
2
3
4
4
6
7
8

Advertisement

Table of Contents
loading

Table of Contents