Omron SYSMAC CVM1 Series Operation Manual page 347

Duplex system
Hide thumbs Also See for SYSMAC CVM1 Series:
Table of Contents

Advertisement

PID and Related Instructions
Precautions
Flags
Example
0000
00
(273)
ZONE 0001 D00100 D00110
If the input data (S) is greater than zero, the input data plus the positive bias will
be output to D and the Greater Than Flag (A50005) will turn ON.
If the input data (S) is equal to zero, 0000 will be output to D and the Equals Flag
(A50006) will turn ON.
Positive bias (C+1)
If the output data is less than 8000 or greater than 7FFF, the sign will reverse. For
example, if the negative bias is FF00 and the input data is 8000, the output data
will be as follows:
The negative bias (C) must be less than or equal to the positive bias (C+1).
Note Refer to page 101 for general precautions on operand data areas.
ER (A50003):
C is less than C+1.
The content of a*DM word is not BCD when set for BCD.
> (A50005):
The input data (S) is greater than 0000.
EQ (A50006):
The output data is all zeros.
< (A50007):
The input data (S) is less than 0000.
N (A50008):
The output data is a negative number.
When CIO 000000 turns ON in the following example, one of the following will
occur:
• If the binary content of CIO 0001 is less than zero, the result of CIO 0001 plus
D00100 will be output to D00110.
• If the binary content of CIO 0001 is equal to zero, 0000 will be output to
D00110.
• If the binary content of CIO 0001 is greater than the content of D00100, the
result of (CIO 0001 plus D00100) will be output to D00110.
CIO 0001
D00101 D00100
41F5
0500
0100
41F5 > 0
41F5 + 0500 = 46F5
Output
8000
+FF00
(–32,768)
(–256)
10
10
CIO 0001
88CC
88CC < 0
88CC + FF9C = 8868
D00110
46F5
A50005 (>) ON
Section 5-24
Input
Negative bias (C)
= 7F00
(32,512)
10
Address Instruction
Operands
00000
LD
00001
ZONE(273)
D00101 D00100
0100
FF9C
D00110
8868
A50007 (<) ON
A50008 (N) ON
000000
0001
D00100
D00110
329

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents