Appendix 2 Computing functions
Table 8-2 is the computing functions provided by the My function-S.
Table 8-2 Computing functions
Input function
Computation
command
name
NOP
ST
STN
AND
ANDN
OR
ORN
EQ
NE
GT
GE
LT
LE
ASUB
(Note 1)
ON
(ON timer)
(Note 1)
OFF
(OFF timer)
(Note 1) COUNT1
(Note 1) COUNT2
(Note 1)
HOLD
(Note 1)
SET
(Note 1)
RESET
(Note 1)
CLR
Function
No operation
Transfer
Transfer (inversion)
Logical product
Logical product
(inversion of right side)
Logical sum
Logical sum
(inversion of right side)
Comparison of data
for matching
Comparison of data
for mismatch
Comparison of sizes
(A B)
Comparison of sizes
(A B)
Comparison of sizes
(A B)
Comparison of sizes
(A B)
Absolute value of
difference
ON delay
OFF delay
Counter
Counter
Peak hold
Set
Reset
Clear
- 27 -
Description
Unnecessary sections (columns) of the My function-S
program.
Used mainly to read data.
Used mainly to invert data and read inverted data.
Logical product of data
Logical product of data
Logical product of data
Logical product of data
Compare two pieces of data, and puts out a 1 if they
match each other or a 0 if not.
Compare two pieces of data, and puts out a 0 if they
match each other or a 1 if not.
Compare the size of two pieces of data (A_GT_B),
and puts out a 1 if A is more than B (A B) or a 0 if A
is equal to or less than B (A B)
Compare the size of two pieces of data (A_GT_B),
and puts out a 1 if A is equal to or more than B
(A B) or a 0 if A is less than B (A B)
Compare the size of two pieces of data (A_GT_B),
and puts out a 1 if A is less than B (A B) or a 0 if A
is equal to or more than B (A B)
Compare the size of two pieces of data (A_GT_B),
and puts out a 1 if A is equal to or less than B (A B)
or a 0 if A is more than B (A B)
Put out the absolute value of the difference between
two pieces of data. IA―BI
Delays the timing of turning data ON by the time
specified with to . Put out the data
simultaneously with turning on the power in case the
signal is already on.
Delay the timing of turning data OFF by the time
specified with to . Put out the data
simultaneously with turning on the power in case the
signal is off.
Count the number of input pulses (count the number
of rising edges) and put out a 1 when reached the
pulse count specified with .
Count the number of input pulses (count the number
of rising edges) and put out a 1 when reached the
pulse count specified with .
Put out the peak input value.
Set data.
Reset data.
Clear data.
E6581865
A
B
A
B
A
B
A
B