276
10 FUNCTIONS
10.8 SIL2 A/D Conversion Function
■SIL2 standard program FB (M+SIL2ADG-IEF_WriteDAVal_R)
• Symbol
• Input labels
• Output labels
*1 If the assigned device is a type of bit, it must be set up as a word-type device.
No. Variable name Name Data type Scope Description
(1) i_bEN Execution command Bit On or off On: The FB is activated.
Off: The FB is not activated.
(2) i_stNFB_ADConv Standard/safety shared
input data
Structure The label specifies standard/safety shared data defined
as follows.
Page 256 Standard/safety shared label definition
No. Variable name Name Data type Default value Description
(3) o_bENO Execution status Bit Off On: The execution command is on.
Off: The execution command is off.
(4) o_bOK Normal completion Bit Off The on state indicates that the FB processing has been
completed successfully.
(5) o_w8DADigOutVal Digital value Word [signed] 0 The label sets the device assigned to CH1 to CH8
Digital value of the R60DA8-G for diagnostics.
Areas of 8 words are required regardless of the number
of D/A conversion enabled channels.
(6) o_uOutEnable D/A output enable/
disable setting
Word [unsigned] 0 The label sets the device assigned to Y00 to Y0F of the
R60DA8-G for diagnostics in a word type.
*1
(7) o_uRelayData Relay control signal Word [unsigned] 0 The label sets the device assigned to Y00 to Y0F of the
RY40PT5B in a word type.
*1
o_uOutEnable UW:
o_w8DADigOutVal W:
o_bOK B:
o_bENO B:
i_stNFB_ADConvST :
i_bENB
(1) (3)
(4)
(5)
(6)
(2)
:
M+SIL2ADG-IEF_WriteDAVal_R
o_uRelayData UW:
(7)