Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 8 of 9

SYSMAC C200H-AD001/DA001 Analog I/O Units Operation Guide: SECTION 3 - C200H-DA001 Analog Output Units, pages 45 to 53

Pages 45 to 53 of 61, from SYSMAC C200H-AD001/DA001 Analog I/O Units Operation Guide

The original document is the PDF (608 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

Filed in the catalog under the Omron C500-AD001

Page 45

Functions and Programming

Section 3-3

IR Area Contents (Inputs) Word (IR)

Bit

Item

Contents n+3

15 to 09 08 07 06 05 04 03 02 01 00

––– Output 2 limit detected

Not used. Upper limit: Turns ON when output 2 value is greater than the upper limit. Lower limit: Turns ON when output 2 value is less than the lower limit. Upper limit: Turns ON when output 1 value is greater than the upper limit. Lower limit: Turns ON when output 1 value is less than the lower limit. Upper limit: Turns ON when output 2 value is greater than the alarm upper limit. Lower limit: Turns ON when output 2 value is less than the alarm lower limit. Upper limit: Turns ON when output 1 value is greater than the alarm upper limit. Lower limit: Turns ON when output 1 value is less than the alarm lower limit. This bit turns ON if the data set in the DM area is wrong. (See note 2.)

Output 1 limit detected Output 2 alarm (See note.) Output 1 alarm (See note.) Setting error

Note When alarm flags turn ON, their status can be read from external connection terminals A7, A8, B7, and B8. (Refer to 3-1-3 Wiring.) At that time the ALARM indicator on the display panel of the Unit will light. DM Allocations Bit

Word DM m

15 14 13 12 11 10 Output lower limit (0000 to 0FFF)

DM (m+1)

Output upper limit (0000 to 0FFF)

DM (m+2)

Alarm lower limit (0000 to 0FFF)

DM (m+3)

Alarm upper limit (0000 to 0FFF)

DM (m+4)

Alarm dead band (0000 to 0FFF)

Note

3-3

09

08

07

06

05

04

03

02

01

00

1. The DM area that is used is a read-only area, so the data cannot be written from the program. Use the Programming Console to set data by changing the present value or changing three words together. 2. Data that is set in the DM area is transferred either at the time of power up or when the Special I/O Unit Restart Bit is turned ON. Any data that is set in the meantime will remain invalid until then. 3. The values set in DM are used for both output lines (i.e., for output 1 and output 2). 4. m = 1000 + 100 x unit number.

Functions and Programming The C200H-DA001 Analog Output Unit provides 4 functions • Output signal range setting • Output limit • Output limit alarm • Pulse output These functions are set using Unit switches and Peripheral Devices, such as a Programming Console. The words allocated to the Unit in the DM Area (DM m to DM m+4) cannot be written from user program and all data set in these words must be written from a Peripheral Device. When inputting data from a Programming Console, use the operations to change present values. When inputting from the SSS (SYSMAC Support Software), use the DM editing operations. The data set in the DM area is transferred to the Analog Output Unit when either of the following steps is taken. Be sure to perform one or the other of these steps whenever new data has been set or data has been changed.

38

Page 46

Functions and Programming

Section 3-3

• Turning ON the power to the C200H/C200HS CPU. • Turning ON the Restart Bit allocated to the Unit as a Special I/O Unit (AR 0100 to 0109).

3-3-1 Output Signal Range Setting The C200H-DA001 converts 12-bit binary data (3-digit hexadecimal) from the PC to analog output in one of three ranges: 0 to 10 V, 1 to 5 V, or 4 to 20 mA. The C200H-DA001 can convert analog output signals in three ranges: 0 to 10 V, 1 to 5 V, or 4 to 20 mA. The range is set on pin 1 of the DIP switch as shown below. Pin 1 OFF

Input range 1 to 5 V 4 to 20 mA

ON

0 to 10 V

If the 0 to 10 V setting is used, it must be used for all two outputs. The 1 to 5 V and 4 to 20 mA ranges can be used at the same time for different outputs. Digital Output vs. Analog Input

10 V

5 V (20 mA)

Output

Output

1 V (4 mA) 0V 0FFF (4095)

0 0 V to 10 V Output (pin 1 ON)

Digital value

Digital value 0FFF (4095) 1 V to 5 V and 4 mA to 20 mA Outputs (pin 1 OFF) 0

3-3-2 Output Limits The output limit function can be used to establish upper and lower limits for the output signal. The limits can be used to restrict the output for any of a number of possible reasons, e.g., to prevent unsuitable outputs from occurring even when incorrect data is set. This function can be used at the same time as the output limit alarm function. The upper and lower limits are preset as binary values in the DM area (lower limit in DM m and upper limit in DM m+1). The output will remain between the upper and lower limits as long as the output limit function is activated.

39

Page 47

Functions and Programming

Section 3-3

If the output goes beyond either limit, an Output Limit Flag (bits 05 to 08 in IR n+3) will turn ON and the output will remain at the limit value Output level

Upper Limit Flag ON

Output limit upper level Lower Limit Flag ON Output limit lower level

Time Output remains at upper or lower limit

Use the following procedure to set upper and lower limits.

1, 2, 3...

1. Set the lower and upper limits in DM m and DM m+1. The setting range is between 0000 and 0FFF (binary data). Set the limits from the Programming Console. This data cannot be changed from the user’s program. Note Calculations of the desired limit can be made as shown in the following example. To set an upper limit of 8 V for a 0 to 10 V range setting, use the following equation and set the results (0CCC) in DM m+1: 8/10 x 0FFF = 0CCC 2. Turn power to the PC off then then back on or turn ON the Special I/O Unit Restart Bit allocated to the Unit (AR 0100 to AR 0109). 3. Turn ON the Output Limit ON Bit for the desired output: Output 1 Limit ON Bit: Bit 06 of IR n+2 Output 2 Limit ON Bit: Bit 07 of IR n+2

40

Page 48

Functions and Programming

Section 3-3

3-3-3 Output Limit Alarms This function activates an alarm if the output signal is outside of the range defined by the upper and lower limits preset in the DM area, but it does not alter the output level. It is possible to include a deadband, which delays the resetting of the alarm.

Output Upper Limit Alarm Flag

Output Lower Limit Alarm Flag

ON OFF

ON OFF

Output level

Deadband

Output limit alarm upper limit

Deadband Output limit alarm lower limit

Time

This function can be used at the same time as the output limit function. The output limit alarms turn ON and OFF according to the following conditions. Upper limit: ON: analog output ≥ output limit alarm upper limit OFF: analog output < output limit alarm upper limit – deadband width Lower limit: ON: analog output ≤ output limit alarm lower limit OFF: analog output > output limit alarm lower limit + deadband width When any of the Output Limit Alarm Flags turn ON, the ALARM indicator on the Unit will light and signals will be generated on external terminals A7, A8, B7, and B8 (refer to 3-1-3 Wiring for details). Use the following procedure to set upper and lower limit alarms.

1, 2, 3...

1. Set the lower and upper alarm limits in DM m+2 to DM m+4. The setting range is between 0000 and 0FFF (binary data). Set the limits from the Programming Console. This data cannot be changed from the user’s program. Note Calculations of the desired limit can be made as shown in the following example. To set an upper limit alarm at 4.75 V for a 1 to 5 V range setting, use the following equation and set the results (0F00) in DM m+1:(4.75 – 1)/(5 – 1) x 0FFF = 15/16 x 0FFF = 0F00 2. Turn power to the PC off then then back on or turn ON the Special I/O Unit Restart Bit allocated to the Unit (AR 0100 to AR 0109). 3. Turn ON the Output Alarm ON Bit for the desired output: Output 1 Alarm ON Bit: Bit 04 of IR n+2 Output 2 Alarm ON Bit: Bit 05 of IR n+2

41

Page 49

Functions and Programming

Section 3-3

3-3-4 Pulse Output The pulse output function can be used to create a 0 to 5 V pulse output for either output 1 or 2 in addition to the analog output. The pulse period and duty ratio (ON/OFF ratio) can be set for the pulse output. These settings can be made from the user program.

5V Amplitude 0V ON

OFF Duty ratio = ON time/pulse period

Pulse period

Note The resolution of the duty ratio is 1/256. Use the following procedure to set a pulse output.

1, 2, 3...

1. Turn ON pin 3 of the DIP switch on the back of the Unit to select pulse output. 2. Turn OFF pin 2 to select output 1, or ON to select output 2. Both outputs cannot be pulse at the same time. 3. Set the pulse period in bits 00 to 02 of IR n+2 as shown below. Bis in IR n

Period

00

01

02

0

0

0

1s

1

0

0

2s

0

1

0

5s

1

1

0

10 s

0

0

1

20 s

4. Set the duty ratio (ON/OFF ratio) for the pulse output in IR n. Refer to 3-3-5 Data Setting Example and Programming Concepts for setting methods. Calculating Settings

To set a duty ratio of 80% , set the results of the following calculation (0CCC) in IR n: 80/100 x 0FFF = 0CCC. If either the duty ratio or period is changed during operation, the output will not change until 1 full period has been completed.

Data changed

42

Pulse output calculation not changed until this point

Page 50

Functions and Programming

Section 3-3

3-3-5 Data Setting Example and Programming Concepts Data Settings The following settings are used in this example. Data in the DM area is set using the SSS, a Programming Console, or another Peripheral Device. Turn power to the PC off then then back on or turn ON the Special I/O Unit Restart Bit allocated to the Unit (AR 0100 to AR 0109) after setting the data so that the data is read into the Analog Output Unit. Item

Setting

Unit number

0 (allocated words: IR 100 to IR 109 and DM 1000 to DM 1004)

Item

Output 1

Output 2

DM word for storing output data

DM 0000

DM 0001

Lower limit output bit

IR 00100

–––

Upper limit output bit

IR 00101

–––

Lower limit alarm output terminal

–––

A8

Upper limit alarm output terminal

–––

B8

Details Item

Output 1

Output 2

Output signal range

1 to 5 V

4 to 20 mA

Output limit function

ON

OFF

Limit alarm function

OFF

ON

Item Output limits Alarm limits

Actual value

Lower limit Upper limit Lower limit Upper limit Deadband

1.25 V 4.75 V 6 mA 19 mA 0.5 mA

Setting 0100 0F00 0200 0F00 0080

DM Area Settings DM word

Data

Setting

DM 1000

0100

Output limit lower limit

DM 1001

0F00

Output limit upper limit

DM 1002

0200

Alarm lower limit

DM 1003

0F00

Alarm upper limit

DM 1004

0080

Deadband for alarm

Programming The types of programming required to use an Analog Output Unit are described in this section. Refer to the operation manual for the C200H/C200HS for details on programming.

43

Page 51

Functions and Programming Writing Output Data

Section 3-3

Output data can be written using instructions like MOV(21) and OUT. The following instruction move the binary contents of DM 0000 and DM 0001 to IR 100 and IR 101, causing the data to be converted to analog signals and to be sent to outputs 1 and 2.

Input condition MOV(21) DM 0000 100

Moves the binary contents of DM 0000 to IR 100, causing the data to be converted to analog signals and to be sent to output 1.

Input condition MOV(21) DM 0001 101

Limiting Outputs

Moves the binary contents of DM 0001 to IR 101, causing the data to be converted to analog signals and to be sent to output 2.

This example assumes that the data settings given at the beginning of this section have already been made. The output will be limited to between 1.25 and 4.75 V when the following instructions are executed.

Input condition 10206

Turns ON the Limit ON Bit for output 1.

Input condition MOV(21) DM 0000 100

Lower Limit Flag 10305 00100

Moves the binary contents of DM 0000 to IR 100, causing the data to be converted to analog signals and to be sent to output 1. Turns ON output bit IR 00100 when the Lower Limit Flag turns ON.

Upper Limit Flag 10306 00101

Monitoring Outputs

Turns ON output bit IR 00101 when the Upper Limit Flag turns ON.

This example assumes that the data settings given at the beginning of this section have already been made. Upper and lower limit alarms will be output as described below when the following instructions are executed. Upper limit alarm: ON when output reaches 19 mA until it drops to 18.5 mA Lower limit alarm: ON when output falls below 6 mA until it reaches 6.5 mA Input condition 10205

Turns ON the Alarm ON Bit for output 2.

Input condition MOV(21) DM 0001 101

Moves the binary contents of DM 0001 to IR 101, causing the data to be converted to analog signals and to be sent to output 2.

The alarm outputs can be wire externally using external terminals A8 and B8. The ALARM indicator on the Unit will light when any Alarm Flag is ON.

44

Page 52

Troubleshooting

Section 3-4

Pulse Output

This example shows how to set pulse outputs on output 1. The pulse output settings are given in the following table. Item Pulse output

Value

Duty Pulse period

80% 2s

Data setting 0CCC in IR 100 Turn ON IR 10200

5V 0V 1.6 s

0.4 s

2s

Duty = 80% (0CCC) Pulse period = 2 s (IR 10200 turned ON)

Turn OFF pin 2 (specifying output 1) and turn ON pin 3 (enabling pulse output) on the back-panel DIP switch before starting. Execute the following instructions in the program. Pulse outputs will be made on output 1.

Input condition MOV(21) #0CCC

Sets the duty ratio to 80%.

100

10200

Sets the period at 2 seconds.

3-4

Troubleshooting

Detection When Errors Occur Unit error

When an error occurs, the contents are output to the SR and HR areas. The following tables show the various errors that may occur, along with their probable causes and remedies. Probable causes and operations

Possible remedies

Setting error

The data set in the DM area is wrong. In this case, the Setting Error Flag (IR n+3, bit 00) will be ON.

RUN indicator not lit

The RUN indicator on the Unit is not lit even though Replace the Unit. power is turned on to the PC, and none of the errors described in this table are applicable.

CPU error CPU waiting

Probable causes and operations

Check the contents of the data.

Possible remedies

• The Special I/O Unit is defective.

• Replace the Special I/O Unit.

• The PC will not run.

• The defective Unit should appear as $ signs only in the I/O table read operation.

Duplicated unit number The same number is assigned to more than one Special I/O Unit. In this case the PC will not run and SR25415 will turn ON.

Do not assign the same number to more than one Unit. Use the I/O table read operation to display unit numbers.

Special I/O Unit error

Check AR 0000 to AR 0009 for the unit number of the Unit in error. After correcting the error, turn ON the proper bit in AR 0100 to AR 0109. If the error does not clear after initialization, replace the Unit.

An error has occurred in the refresh signal between the CPU and the Special I/O Unit. In this case, only the Special I/O Unit stops. SR 25415 is turned ON.

45

Page 53

Troubleshooting

Section 3-4

Special I/O Unit Error Detection Bit (SR) Bit 25415

Error

Explanation

Operation status

Duplicated unit number

One number is assigned to more than one Special I/O Unit.

PC operation stops.

Special I/O Unit error

An error has occurred in the refresh signal between the CPU and the Special I/O Unit

Operation stops only for the faulty Unit.

Special I/O Unit Error Flags (AR) Bit

Item

AR 0000 AR 0001 AR 0002 AR 0003 AR 0004 AR 0005 AR 0006 AR 0007 AR 0008 AR 0009

Unit #0 Error Flag Unit #1 Error Flag Unit #2 Error Flag Unit #3 Error Flag Unit #4 Error Flag Unit #5 Error Flag Unit #6 Error Flag Unit #7 Error Flag Unit #8 Error Flag Unit #9 Error Flag

Function When one of the CPU errors described above occurs, the AR bit turns ON for the Unit where the error occurred.

Special I/O Unit Restart Bits (AR) Turn ON the Special I/O Unit Restart Bits in the following circumstances: • After DM data has been set or replaced. • To restart Unit operation after clearing an error. The same effect can be achieved by turning off the power to the PC and then turning it on again.

46

Bit

Item

AR 0100 AR 0101 AR 0102 AR 0103 AR 0104 AR 0105 AR 0106 AR 0107 AR 0108 AR 0109

Unit #0 Restart Bit Unit #1 Restart Bit Unit #2 Restart Bit Unit #3 Restart Bit Unit #4 Restart Bit Unit #5 Restart Bit Unit #6 Restart Bit Unit #7 Restart Bit Unit #8 Restart Bit Unit #9 Restart Bit

Function Special I/O Units can be restarted by turning the corresponding bits ON.