Omron CPM1 - PROGRAMING MANUAL 02-2001 Programming Manual page 194

Hide thumbs Also See for CPM1 - PROGRAMING MANUAL 02-2001:
Table of Contents

Advertisement

Analog I/O Units
1, 2, 3...
SR 25315
(Always ON Flag)
T005
174
Writing Analog Output Set Values
A ladder program can be used to write data to the output word where the set val-
ue is stored. The output word will be "n+1" when "n" is the last output word allo-
cated to the CPU Unit, or previous Expansion Unit or Expansion I/O Unit.
(n + 1)
1. The set value range is 0000 to 00FF when the output signal range is 0 to
10 V/4 to 20 mA.
2. The set value range is divided into two parts: 8000 to 80FF (–10 to 0 V) and
0000 to 00FF (0 to 10 V) when the output signal range is –10 to 10 V.
3. If FFjj is input, 0 V/4 mA will be output.
4. If an output value is specified, the following bits will be ignored.
Output range of –10 to 10 V: Bits 08 to 14
Output range of 0 to 10 V/4 to 20 mA: Bits 08 to 15
Startup Operation
After power is turned ON, it will require two cycle times plus approx. 100 ms be-
fore the first data is converted. The following instructions can be placed at the
beginning of the program to delay reading converted data from analog inputs
until conversion is actually possible.
Note Analog input data will be 0000 until initial processing has been completed. Ana-
log output data will be 0 V or 0 mA until the range code has been written. After the
range code has been written, the analog output data will be 0 V or 4 mA if the
range is 0 to 10 V, –10 to 10 V, or 4 to 20 mA.
TIM 000
#0003
MOV (21)
001
DM0000
Handling Unit Errors
If an error occurs in an Analog I/O Unit, the Error Flags in AR 0200 to AR 0204 will
be turned ON. The addresses of the Error Flags are in the order that the Expan-
sion Units and Expansion I/O Units are connected in the PC, with AR 0200 used
for the Expansion Unit or Expansion I/O Unit closest to the CPU Unit. Use these
flags in the program when it is necessary to detect errors.
When an error occurs in the Analog I/O Unit, analog input data will be 0000 and
0 V or 4 mA will be output as the analog output.
0
0
0
0
0
0
0
Sign bit
(Used when the output sig-
nal range is –10 to 10 V.)
TIM 000 will start as soon as power turns ON.
After 0.2 to 0.3 s (200 to 300 ms), the Comple-
tion Flag for TIM 000 will turn ON, and the con-
verted data from analog input will be read from
IR 001 and stored in DM 0000.
Section
Set value (Hex: 00 to FF)
3-1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents