20
3 ANALOG OUTPUT MODULE FB
3.4 M+FX5-4DA_WaveOutputReqSetting
FB details
(12) o_bErr Error completion Bit OFF The on state indicates that an error has occurred in the
FB.
(13) o_uErrId Error code Word [Unsigned] 0 The error code of an error occurred in the FB is stored.
Item Description
Available device Target module FX5-4DA
Target CPU FX5U CPU, FX5UC CPU
Engineering tool GX Works3 Version 1.040S or later
Language Ladder diagram
Number of basic steps 256 steps
The number of FB steps integrated in the program varies depending on the CPU module used, the input/output definition, and
the setting options of GX Works3. For the setting options of GX Works3, refer to GX Works3 Operating Manual.
Processing • As i_bEN (execution command) turns on, a start or stop request for the wave output of a specified channel or all channels is
written to the buffer memory.
• As i_bEN (execution command) turns on, the FB outputs the values of 'CHWaveform output status monitor' (Un\G401,
Un\G601, Un\G801, Un\G1001) . When an individual channel is specified in the input label, only this specified channel
updates a wave output status monitor value and the other channels output 0. When all channels are specified in the input
label, all the channels output wave output status monitor values. The number of channels with all channels specified
depends on the module type.
• As i_bEN (execution command) turns on, the FB always starts its execution.
• To start wave output once again, after the wave output ends, change i_uStartStopReq (waveform output start/stop request)
from 1 (waveform output start request) to 0 (waveform output stop request), and then set 1 (waveform output start request)
again.
• The wave output setting is enabled only when the output mode setting is set to the wave output mode.
• When the setting values of target channel are out of range, o_bErr (Error completion) turns on, and the FB processing are
stopped. Also, Error code 100 (Hexadecimal) is stored in o_uErrId (Error code). For the error code, refer to Page 21
Error code.
• When the setting values of module type are out of range, o_bErr (Error completion) turns on, and the FB processing are
stopped. Also, Error code 102 (Hexadecimal) is stored in o_uErrId (Error code). For the error code, refer to Page 21
Error code.
FB compilation method Macro type
FB operation Always executed
Timing chart of I/O signals [For normal completion]
[For error completion]
No. Variable name Name Data type Default value Description
i_uStartStopReq
o_bErr
o_uErrId
0
Write0
0
o_uWaveStatusCH1 to 4 Update in progress0
0
i_bEN
o_bENO
o_bOK
i_uStartStopReq
o_bErr
o_uErrId
0
0
o_uWaveStatusCH1 to 4
Error code0
0
i_bEN
o_bENO
o_bOK