Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 838

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

Flags
Name
Error Flag
Equals Flag
Related Auxiliary Area Words and Bits
Name
Special I/O Unit Initialization
Flags
Function
AIDC(216) executes digital conversion for the analog input or inputs specified in A for the CJ1W-AD042
Analog Input Unit with the unit number specified in N, reads the conversion results immediately, and
stores them in the Special I/O Unit Area in the CIO Area.
If 0 is specified for A, four words of data are stored. If 1 to 4 is specified for A, one word of data is
stored. If 0 is specified for A, 0 will be stored for unused analog inputs.
The specified CJ1W-AD042 Analog Input Unit must be in Direct Conversion Mode before AIDC(216) is
executed. Refer to the SYSMAC CS/CJ-series Analog I/O Units Operation Manual (Cat. No. W345) for
details on the Direct Conversion Mode and the number of analog inputs.
Special I/O Unit Area
n = CIO 2000 + Unit number
Precaution
• Use AIDC(216) only for a CJ1W-AD042 Analog Input Unit. If it is executed for any other Special I/O
Unit, the instruction execution time may be approx. 1 ms or the Unit may stop operating (i.e., the ERH
indicator will light).
• The specified CJ1W-AD042 Analog Input Unit must be placed in Direct Conversion Mode before
AIDC(216) is executed. If it is not in Direct Conversion Mode, the instruction will not be executed and
the Error Flag will turn ON.
• Do not execute this instruction in both a cyclic task and an interrupt task. If it is executed both in a
cyclic task and an interrupt task, the instruction in the interrupt task will not be executed and the Error
Flag will turn ON.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Label
ER
• ON if the unit number in N is not between &0 and &95 decimal (#0000 and #005F hex).
• ON if the specified unit is not a CJ1W-AD042 Analog Input Unit.
• ON if the specified CJ1W-AD042 Analog Input Unit is being initialized or restarted.
• ON if there is no Unit with the unit number specified in N.
• ON if AIDC(216) is executed in an interrupt task when it is also being executed in a cyclic task.
• ON if an analog input that is not being used is specified in A.
• ON if the specified CJ1W-AD042 Analog Input Unit is not in Direct Conversion Mode.
• ON if there is a DM parameter setting error for specified CJ1W-AD042 Analog Input Unit. (The ERC
indicator will be lit.)
• ON if there is an analog converter error.
• OFF in all other cases.
=
• ON if reading the data was completed normally.
• ON if reading the data was not completed normally.
Addresses
A330.00 to
ON when a Special I/O Unit is being initialized.
A335.15
OFF: Not being initialized.
ON: Being initialized.
N
A
10
n+1
n+2
n+3
n+4
Read
Operation
Operation
Unit number
CJ1W-AD042 Analog Input Unit
Digital conversion
1
Analog input
number
2
3
4
3. Instructions
Inputs
801
3

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents