Creating Programs4-84.3 Analog Output Unit (FP0R-DA4)4.3.1 Writing of Digital Data for Output (12-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 (12-bit FP0-A04 Compatibility mode)Two bits, the bits C and D, are used as the switching flags.X3FX3EX3DX3CX3BX3AX39X38X37X36X35X34X33X32X31X30X2FX2EX2DX2CX2BX2AX29X28X27X26X25X24X23X22X21X20A1A0Output data of CH1/CH3(12bit)A1A0Output data of CH0/CH2(12bit)Output data switching flag Output data switching flagA1 A0 WY3 A1 A0 WY20 0 D/A conversion: None 0 0 D/A conversion: None0 1 CH1data 0 1 CH0 data1 0 CH3 data 1 0 CH2 data1 1 D/A conversion: None 1 1 D/A conversion: None Writing conversion data• 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).