EasyManuals Logo

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #865 background imageLoading...
Page #865 background image
827
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Basic I/O Unit Instructions
3
AIDC
Flags
Related Auxiliary Area Words and Bits
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.
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.
Name Label Operation
Error Flag 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.
Equals Flag = • ON if reading the data was completed normally.
• ON if reading the data was not completed normally.
Name Addresses Operation
Special I/O Unit Initialization
Flags
A330.00 to
A335.15
ON when a Special I/O Unit is being initialized.
OFF: Not being initialized.
ON: Being initialized.
N
A
1
2
3
4
n+2
n+4
n+3
n+1
Unit number
Special I/O Unit Area
n = CIO 2000 + Unit number × 10
CJ1W-AD042 Analog Input Unit
Digital conversion
Analog input
number
Inputs
Read

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals