3 -3
General Timer/Counter Function Instructions
FUN
No.
Name
Operand
Derivative
Instruction
Function descriptions
T nnn
PV
General timer instructions (“nnn” range 0
~
255)
C nnn
PV
General counter instructions (“nnn” range 0
~
255)
Single Operand Function Instructions
4
DIFU
D
To get the up differentiation of a D relay and store the result to D
5
DIFD
D
To get the down differentiation of a D relay and store the result to D
10
TOGG
D
Toggle the status of the D relay
Setting/Resetting
SET
D
DP
Set all bits of register or a discrete point to 1
RST
D
DP
Clear all bits of register or a discrete point to 0
114
Z-WR
D
P
Zone set or clear
SFC
Instructions
STP Snnn
STEP
declaration
STPEND
End of the STEP program
TO
Snnn
STEP divergent instruction
FROM Snnn
STEP
convergent
instruction
Mathematical Operation Instructions
11
(
+
)
Sa,Sb,D
DP
Perform addition of Sa and Sb and then store the result to D
12
(
-
)
Sa,Sb,D
DP
Perform subtraction of Sa and Sb and then store the result to D
13
(
*
)
Sa,Sb,D
DP
Perform multiplication of Sa and Sb and then store the result to D
14
(
/
)
Sa,Sb,D
DP
Perform division of Sa and Sb and then store the result to D
15
(
+
1)
D
DP
Adds 1 to the D value
16
(
-
1)
D
DP
Subtracts 1 from the D value
23
DIV48
Sa,Sb,D
P
Perform 48 bits division of Sa and Sb and then store the result to D
24 SUM S,N,D
DP
Take the sum of the successive N values beginning from S and store
it in D
25 MEAN S,N,D
DP
Take the mean average of the successive N values beginning from S
and store it in D
26
SQRT
S,D
DP
Take the square root of the S value and store it in D
27 NEG
D
DP
Take the 2's complement (negative number) of the D value and store
it back in D
28
ABS
D
DP
Take the absolute value of D and store it back in D
29 EXT
D
P
Take the 16 bit numerical value and extend it to 1 32 bit numerical
value (value will not change)
30 PID
TS,SR,OR,
PR,WR
PID
operation
31 CRC MD,S,N,D P CRC16 checksum calculation
32
ADCNV
PL,S,N,D
Offset and full scale conversion
Содержание FBs-CBE
Страница 78: ...MEMO ...
Страница 111: ...4 6 X0 X1 Node A Y0 Y1 Node B differential down Incerse differential up t Scan time Inverse t t ...
Страница 141: ...Basic Function Instruction 6 16 FUN 2 SKP SKIP START FUN 2 SKP Y2 Y1 Y0 T201 10S X0 X1 X2 0 10 0 ...
Страница 305: ...MEMO ...
Страница 348: ...MEMO ...