4-28
Section 4 Software Interface
4-3 Analog Input/Output Module
(1) Digital output value/status register (offset address: +0 to +3)
When this module is in conversion mode, digital output values and/or statuses are stored, in the registers of offset address +0
to +3.
* When using D300win, assign INT type variables to these registers.
Offset
address
15(F)
+0
+1
+2
+3
Channel 1 Digital output value / Status
Channel 2 Digital output value / Status
Channel 3 Digital output value / Status
Channel 4 Digital output value / Status
0
Status code Condition of modul Descrip tion
30002
(7532h)
EEPROM calibration data
error
(Module fatal fault)
If the cali bration data of EEPROM i s destroyed or if EEPROM cannot be
written or read, this error is notified. Module internal EEPROM is abnormal.
If thi s error occurred, it is necessary to replace the module.
30003
(7533h)
EEPROM user setting data
error
If the user setting data of EEPROM is destroyed, this error is noti fied.
If thi s error occurred, all parameters need to be reset. If thi s error recurs
even after parameters are reset, the module seems to have failed.
30004
(7534h)
Internal power supply down
If the internal power supply of the module becomes down, this error is
notified.
30006
(7536h)
Conversion error
If conversion became abnormal because the module failed or was used in an
out-of-spec environment, this error is notified.
Ordinarily digital output values (INT type) are stored in the registers explained above. If the module becomes
abnormal, the following status code (INT type) is stored in these registers. When making an application program,
be sure to interlock erroneous and normal (A/D conversion) conditions.
(2) Digital input values of channels 5 and 6 (offset address +4 and +5)
The digital values to undergo D/A conversion are stored in these memory areas. Just after the system is powered up, 0 V or 0
mA is output. When the initialization of the module is completed, the analog value that corresponds to the digital input value of
0 (zero) is output (for example, 1 V for the range of 1 to 5 V).
When the system is started (when the CPU module starts running), the analog value that corresponds to the digital value input
to this memory area is output. For more information of conversion characteristics, refer to “2-3 Conversion Characteristics”.
* When using D300win, assign INT type variables to these registers.
Offset
address
15(F)
+4
+5
Channel 5 Digital input value
Channel 6 Digital input value
0
(3) Status register (offset address +0)
When parameters are being set or read out, “30001” is output by the module.