Creating Programs4-144.3.2 Writing of Digital Data for Output (14-bit Mode)With the analog output unit, the conversion output is performed by using two bits as theswitching flags of output channels and writing data. I/O allocation (14-bit mode)In the 14-bit mode, the most significant two bits are used as the switching flags. They arecommon to the flags for setting ranges.Y3FY3EY3DY3CY3BY3AY39Y38Y37Y36Y35Y34Y33Y32Y31Y30Y2FY2EY2DY2CY2BY2AY29Y28Y27Y26Y25Y24Y23Y22Y21Y20A1A0Output data of CH1/CH3 (14bit)Range settingA1A0Output data of CH0/CH2 (14bit)Range settingA1 A0 Item A1 A0 Item0 0 CH1 output range setting 0 0 CH0 output range setting0 1 CH1 output data 0 1 CH0 output data1 0 CH3 output data 1 0 CH2 output data1 1 CH3 output range setting 1 1 CH2 output range setting Writing data for conversion• The analog output unit writes the analog output digital data of a maximum of 4 channels totwo memory areas (WY2/WY3) by user programs. Output data switching flags for specifyingchannels are allocated to the two bits of the memory area (WY2/WY3).• In user programs, channels are specified by setting/resetting the output channel swtichingflag right after setting a digital value in the memory area.• As CH0 and CH2, and CH1 and CH3 use each common memory area, data cannot bewritten to the unit in the same scan. Write data separated into two scans using scan pulserelay R9012, etc. In the channels which are not allocated to the same memory area, datacan be written in the same scan.Example Processing DescriptionWhen CH0 andCH1 are usedWriting CH0 data in WY2 at the time of “n” scanWriting CH1 data in WY3 at the time of “n” scanData can be written in WY2 and WY3 atthe time of “n” scan.When CH0 andCH2 are usedWriting CH0 data in WY2 at the time of “n” scanWriting CH2 data in WY2 at the time of “n+1” scanData can be written in WY2 once in 2scanning processes (at the time of “n”and “n+1” scan).