Omron CP1H-CPU - 05-2006 Operation Manual page 430

Cp1h cpu unit
Table of Contents

Advertisement

Analog Output Units
Writing Analog Output Set
Values
Startup Operation
Handling Unit Errors
Program Example
The ladder program can be used to write data to the output word where the
set value is stored. The output word will be "n+1" when "n" is the last output
word allocated to the CPU Unit, or previous Expansion Unit or Expansion I/O
Unit.
After power is turned ON, it will require two cycle times plus approximately 50
ms before the first data is converted.
The following table shows the output status after the initial processing is com-
pleted.
Output type
Output range
0 to 10 V,
-10 to +10 V
Before range
0 V
code is written
After range
0 V
code is written
Therefore, create a program as shown below, so that when operation begins
simultaneously with startup it will wait for valid set data.
Always ON Flag
P_On
T5
• When an error occurs at the Analog Output Unit, the analog output will be
0 V or 0 mA. If a CPU Unit fatal error occurs when analog outputs are set
in the 1 to 5 V or 4 to 20 mA range, 0 V or 0 mA will be output for a CPU
error I/O bus error, and 1 V or 1 mA will be output for all other errors.
• CPM1A Expansion Unit errors are output to bits 0 to 6 of word A436. The
bits are allocated from A436.00 in order starting with the Unit nearest the
CPU Unit. Use these flags in the program when it is necessary to detect
errors.
Analog output Output range
Output 1
0 to 10 V
Output 2
4 to 20 mA
Output 3
-10 to 10 V
Output 4
Not used.
Voltage output
1 to 5 V
0 to 20 mA
0 mA
1 V
0 mA
TIM 005 will start as soon as power
turns ON. After 0.1 to 0.2 s (100 to
T 5
200 ms), the Completion Flag for
#0002
TIM 005 will turn ON, and the data
stored in DM 0100 will be moved to
IR 102 as the conversion data for
MOV(021)
analog output 1.
D100
102
Range code
001
1001 (9 hex)
011
1011 (B hex)
000
1000 (8 hex)
-(000)
0000 (0 hex)
Section 7-3
Current output
4 to 20 mA
4 mA
Set data
Destination
word
Wd n+1
Wd n+1
Wd n+2
Wd n+2
399

Advertisement

Table of Contents
loading

Table of Contents