Mitsubishi MELSEC-Q series Programming Manual page 155

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

Advertisement

Set Data
Set Data
(1) Data specified in S.D instruction
Specified position
Symbol
+0
S1
E1
+1
Input
data
+2
e1
Block
+0
D1
BW
memory
+1
+0
S2
T
Operation
+1
constant
+2
Ys
+3
Local work
+0
D2
E1
n-1
*2
+1
memory
*1
The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
*2
When control is to be started from the initial status, the data must be cleared with the sequence program.
(2) Execution cycle ( T)
Set the execution cycle in SD1500 and SD1501 as real numbers.
Set Data
Processing contents
The S.D instruction performs the following operation.
e1
BW =
0
Note that T +
1
BW = Y
E1: Current input value, T: Execution cycle, Y
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
Error code
When an operation error occurs
4100
When the values of
non-normalized number
When the values of
4140
non-normalized number
4141
When an operation error occurs
Name
Recommended range
Input value
-999999 to 999999
b15
b12
Operation
control signal
0: With derivative operation
1: Without derivative operation
Output value
(-999999 to 999999)
Derivative
0 to 999999
time
Output initial
-999999 to 999999
value
Last input
Used by the system as a work area.
value
BW
T
(Y
-E1
+E1)
n-1
n-1
T+ T
T = 0, BW = 0.
s
: Last output value, Y
n
Error definition
,
,
,
are either a non-numeric or
S1
D1
S2
D2
,
,
,
are either a non-numeric or
S1
D1
S2
D2
*1
Unit Data format
––
b8
b4
b0
e
1
––
––
s
––
––
: Last output value
n-1
QnPHCPU
QnPRHCPU
––
––
S.D
Standard
Set
value
by
Real
––
U
number
BIN
––
U
16bit
Real
––
S
number
Real
1.0
U
number
Real
0.0
U
number
Real
––
S
number
QnUDPVCPU
––
––
––
––
153
9
2
3
4
4
6
7
8

Advertisement

Table of Contents
loading

Table of Contents