1.1. Overview of the FB Library ............................................................................................................................. 3
1.2. Function of the FB Library ............................................................................................................................... 3
1.3. System Configuration Example ...................................................................................................................... 4
2. Details of the FB Library ..................................................................................................................................... 5
2.1. M+Q64DA_Writ eDAVal (DA conversion data write) ....................................................................................... 5
2.2. M+Q64DA_Writ eA llDAVal (DA conversion dat a write (All CHs)) .................................................................... 9
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
FBM-M042-B
1/49
Page 2
Reference Manual Revision History
Reference Manual Number Date Description
FBM-M042-A 2010/12/10 First edition
FBM-M042-B 2015/03/27 1) Added applicable GX Works2 Version.
•This FB is able to install on GX Works2 of all lan guage versions.
2) Added the following "FB Version Upgrade Hist or y" .
•M+Q64DA_SetOffsetVal
•M+Q64DA_SetGainVal
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
FBM-M042-B
2/49
Page 3
1. Overview
nable/disable sett ing of a specified channe l or all
1.1. Overview of the FB Library
This FB Library is for using t he M EL SEC-Q Digital-Analog Converter Module.
1.2. Function of the FB Library
Item Description
M+Q64DA_WriteDAVal Writes DA conversion data of a specified channel.
M+Q64DA_WriteAllDAVal Writes DA conversion data of all channels.
M+Q64DA_SetDAConversion Sets the DA conversion e nable/disable setting of a specified channel
or all channels.
M+Q64DA_SetDAOutput Sets the DA output e
channels.
M+Q64DA_RequestSetting Enables settings of each f unct ion.
M+Q64DA_SetOffsetVal Performs offset setting of a specified channe l.
M+Q64DA_SetGainVal Performs gain setting of a specified channel.
M+Q64DA_ErrorOperation Monitors error codes and per f orms error reset.
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
FBM-M042-B
3/49
Page 4
CPU module (
QCPU
)
D/
A converter module (Q64DA)
Power supply module
Input
module
(QX40)
Output module (QY40)
1.3. System Configuration Example
1.4. Relevant Manuals
•Digital-Analog Converter Module User 's Manual
•QCPU User's Manual (Har dw ar e D esign, Maintenance and Inspection)
•GX Works2 Version 1 Op er at ing Manual (Common)
•GX Works2 Version 1 Op er at ing Manual (Simple Project, Fu nction Block)
1.5. Note
Please make sure to read user 's manuals for the corresponding products before using the products.
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
FBM-M042-B
4/49
Page 5
2. Details of the FB Library
Execution commandB : FB_ENFB_ENO : BExecution status
Modu le start XY addre ssW : i_Start_IO_NoFB_OK : BCompleted without error
Channel No.W : i_CHFB_ ERROR : BError flag
Digital valueW : i_ DA_ValueERROR_ID : WError code
M+Q64DA_WriteDAVal
2.1. M+Q64DA_WriteDAVal (DA conversion dat a write)
FB Name
M+Q64DA_WriteDAVal
Function Overview
Item Description
Function overview Writes DA conversion data of a specified channel.
Symbol
Applicable hardware
and software
Digital-analog
Q64DA, Q64DAN
converter module
CPU module
Series Model
MELSEC-Q Series* High performance model
* Not applicable for QCP U ( A mode)
Engineering softwar e GX Works2 *1
Language Software version
Japanese version Version1.86Q or later
English version Version1.24A or later
Chinese (Simplified) version Version1.49B or later
Chinese (Traditional) version Version1.49B or later
Korean version Version1.49B or later
*1 For software versions applicable to the modules used, refer to
"Relevant Manuals".
Universal model
Programming
Ladder
language
Number of steps 181 steps (for MELSEC-Q series universal model CPU)
* The number of ste ps of the FB in a program depen ds on the CPU model that is used and
input and output definition.
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
5/49
FBM-M042-B
Page 6
Item Description
4) When two or more of these FBs are used, prec aution must be ta ken to avoid repet ition of
he output range, sync hronous out put mode, resoluti on mode, an d operat ion mode must
Refreshing
stop
FB_EN
(Execution command)
FB_ENO
(Execution status)
FB_OK
(Completed without error)
FB_ERROR(Error flag)
ERROR_ID(Error code)
0
CH digital input value
(Un\ G1 to 4)
Refreshing
stop
Refreshing
FB_EN
(Execution command)
FB_ENO
(Execution status)
FB_OK
(Completed without error)
FB_ERROR (Error flag)
ERROR_ID (Error code)
0
10(Decimal)
0
CH digital input value
(Un\ G1 to 4)
Refreshing stop
Function description 1) By turning ON FB_EN (Execution command), DA conv er sion data is written t o t he
specified channel.
2) The DA conversion data to be written depends on the r esol ut ion mode setting.
3) When the input value is invali d, t he FB_ERROR output turns O N, pr ocessing is
interrupted, and the error code is stored in ERROR_I D (Err or code).
Refer to the error code expla nat ion section for details.
Compiling method Macro type
Restrictions and
precautions
1) The FB does not inclu de error recovery processi ng. Program the error recovery
processing separately in accordance with the required system operation.
2) The FB cannot be use d in an interrupt program.
3) Please ensure that the FB_EN signa l is capable of bein g turned OFF by t he program. Do
not use this FB in programs that ar e only executed once such as a su br outine,
FOR-NEXT loop, etc. because it is impossible to turn O FF.
the target channel.
5) This FB uses index re gisters Z7, Z8 and Z9. Please do not use these index registers in
an interrupt program.
6) Every input must be provided w ith a value for proper FB operation.
7) If the auto refresh is set using GX Configurator-DA or the con figur at ion function of GX
Works 2, using this FB is unnecessary.
8) T
be configured to match devices and systems connec t ed t o t he Q64DA m odule.
Configure these settings b y making the GX Works2 switch setting according t o t he
application.
For details on how to use the inte ll ige nt function module switch setting, refer to GX
Works2 Operating Manual (Common).
FB operation type Real-time execution
Application example Refer to "Appendix 1. FB Library Application Examples".
Timing chart [When operation complet es without error] [When an error occurs]
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
6/49
FBM-M042-B
Page 7
Item Description
Relevant manual
•Digital-Analog Converter Module User 's Manual
•QCPU User's Manual (Har dw ar e D esign, Maintenance and I nspec tion)
•GX Works2 Version 1 Op er at ing Manual (Common)
•GX Works2 Version 1 Op er at ing Manual (Simple Project, Fu nction Block)
Error codes
Error code list
Error code Description
10 (Decimal) The specified target channel is not valid. The target channel is not within the range of the
number of channels of the mou nt ed module. Please try again a f ter confirming the sett ing.
Labels
Input labels
Name (Comment) Label name Data
Setting range Description
type
Execution
FB_EN Bit ON, OFF ON: The FB is activat ed.
command
Module start XY
address
i_Start_IO_No Word Depends on the I/O point
range. For details, refer to
the CPU user's manual.
OFF: The FB is not activated.
Specify the starting XY
address (in hexadecima l)
where the Q64DA module is
mounted. (For example, e nt er
H10 for X10.)
Channel No. i_CH Word 1~4 Specify the channel number.
Digital value i_DA_Value Word Depends on the output
range setting and resolution
setting of the specified
For details on the setting
range of the digital valu e, r efer
to the relevant manual.
channel.
Output labels
Name (Comment) Label name Data
type
Initial
value
Description
Execution status FB_ENO Bit OFF ON: Execution command is ON
OFF: Execution command is OFF.
Completed without
error
FB_OK Bit OFF When ON, it indicates that DA conversion value is
being written.
Error flag FB_ERROR Bit OFF When ON, it indicates that an error has occurred.
Error code ERROR_ID Word 0 FB error code output.
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
FBM-M042-B
7/49
Page 8
FB Version Upgrade Hist ory
Version Date Description
1.00A 2010/12/10 First edition
Note
This chapter includes information related to the M+Q64DA_Write D AVal function block.
It does not include informat ion o n r estrictions of use such as com bi nation with digital-a nalog converter modules or
programmable controller CP Us.
Before using any Mitsubishi products, pleas e read all the relevant manuals.
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
FBM-M042-B
8/49
Page 9
Execution commandB : FB_ENFB_ENO : BExecution status
Modu le start XY address
W : i_Start_IO_NoFB_OK : BCompleted without error
Channel 1 digital value
W : i_ DA_Value CH1FB_ ERROR : BError flag
Channel 2 digital valueW : i_DA_Valu eCH2ERROR_ID : WError code
Channel 3 digital valueW : i_DA_Valu eCH3
Channel 4 digital valueW : i_DA_Valu eCH4
M+Q6 4DA_WriteAllDAVal
2.2. M+Q64DA_WriteAllDAVal (DA conversion data write (All CHs))
FB Name
M+Q64DA_WriteAllDAVal
Function Overview
Item Description
Function overview Writes DA conversion data of all channels.
Symbol
Applicable hardware
and software
Digital-analog
Q64DA, Q64DAN
converter module
CPU module
Series Model
MELSEC-Q Series* High performance model
* Not applicable for QCP U ( A mode)
Engineering softwar e GX Works2 *1
Language Software version
Japanese version Version1.86Q or later
English version Version1.24A or later
Chinese (Simplified) version Version1.49B or later
Chinese (Traditional) version Version1.49B or later
Korean version Version1.49B or later
*1 For software versions applicable to the modu les used, refer to
Universal model
"Relevant Manuals".
Programming
Ladder
language
Number of steps 177 steps (for MELSEC-Q series universal model CPU)
* The number of ste ps of the FB in a program depen ds on the CPU model that is used and
input and output definition.
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
9/49
FBM-M042-B
Page 10
Item Description
8) The output range, sync hronous output m ode, resoluti on mode, and operat ion mod e must
Refreshing
stop
FB_EN
(Execution command)
FB_ENO
(Execution status)
FB_OK
(Completed without error)
FB_ERROR(Error flag)
ERROR_ID(Error code)
0
CH digital input value
(Un\ G1 to 4)
Refreshing
stop
Refreshing
Function description 1) By turning ON FB_E N (Execution command), D A conversion data is written to the all
channels.
2) The DA conv ersion dat a t o be written to t he all channels de pends on the re solution mode
setting.
Compiling method Macro type
Restrictions and
precautions
1) The FB does not inclu de error recovery processi ng. Program the error recovery
processing separately in accordance with the required system operation.
2) The FB cannot be use d in an interrupt program.
3) Please ensure that the FB_EN signa l is capable of bein g turned OFF by t he program. Do
not use this FB in programs that ar e only executed once such as a su br outine,
FOR-NEXT loop, etc. because it is impossible to turn O FF.
4) When two or more of these FBs are used, prec aution must be ta ken to avoid repetition of
the target channel.
5) This FB uses index re gisters Z8 and Z9. Please do not use these index registers in an
interrupt program.
6) Every input must be provided w ith a value for proper FB operation.
7) If the auto refresh is set using GX Configurator-DA or the con figur at ion function of GX
Works 2, using this FB is unnecessary.
be configured to match devices and systems connec t ed t o t he Q64DA m odule.
Configure these settings b y making the GX Works2 switch setting according t o t he
application.
For details on how to use t he int elligent function module s w itc h set t ing, refer to GX
Works2 Operating Manual (Common).
FB operation type Real-time execution
Application example Refer to "Appendix 1. FB Library Application Examples".
Timing chart
Relevant manual
•Digital-Analog Converter Module User 's Manual
•QCPU User's Manual (Har dw ar e D esign, Maintenance and I nspec tion)
•GX Works2 Version 1 Operating Manual (Common)
•GX Works2 Version 1 Op er at ing Manual (Simple Project, Fu nction Block)
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
10/49
FBM-M042-B
Page 11
Error codes
Error code list
Error code Description
None No errors are stored for this FB.
Labels
Input labels
Name (Comment) Label name Data
type
Execution
FB_EN Bit ON, OFF ON: The FB is activat ed.
command
Module start XY
i_Start_IO_No Word Depends on the I/O point
address
Channel 1 digital
i_DA_ValueCH1 Word Depends on the output
value
Channel 2 digital
i_DA_ValueCH2 Word Depends on the output
value
Channel 3 digital
i_DA_ValueCH3 Word Depends on the output
Setting range Description
OFF: The FB is not activ ated.
Specify the starting XY
range. For details, refer to
the CPU user's manual.
address (in hexadecima l)
where the Q64DA module is
mounted. (For example, e nt er
H10 for X10.)
Writes the digital conversion
range setting and resolution
value of the channel 1.
setting of the channel 1.
Writes the digital conversion
range setting and resolution
value of the channel 2.
setting of the channel 2.
Writes the digital conversion
value
Channel 4 digital
value
range setting and resolution
setting of the channel 3.
i_DA_ValueCH4 Word Depends on the output
range setting and resolution
setting of the channel 4.
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
11/49
value of the channel 3.
Writes the digital conversion
value of the channel 4.
FBM-M042-B
Page 12
Output labels
Name (Comment) Label name Data
type
Initial
value
Description
Execution status FB_ENO Bit OFF ON: Execution command is ON.
OFF: Execution comman d is OFF.
Completed without
error
FB_OK Bit OFF When ON, it indicates t hat DA conversion values of
all channels are being writt en.
Error flag FB_ERROR Bit OFF When ON, it indicates that an error has occurred.
Error code ERROR_ID Word 0 FB error code output.
FB Version Upgrade Hist ory
Version Date Description
1.00A 2010/12/10 First edition
Note
This chapter includes information related to the M+Q64DA_WriteAllDAVal function bloc k.
It does not include informat ion o n r estrictions of use such as com bi nation with digital-a nalog converter modules or
programmable controller CPUs.
Before using any Mitsubishi products, pleas e r ead all the relevant manuals.
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
FBM-M042-B
12/49
Page 13
Execution commandB : FB_ENFB_ENO : BExecution status
Modu le start XY addre ssW : i_Start_IO_NoFB_OK : B
Item Description
Function overview Sets the DA conversion enable/disable setting of a specified channel or all channels.
Symbol
Applicable hardware
and software
Digital-analog
Q64DA, Q64DAN
converter module
CPU module
Series Model
MELSEC-Q Series* High performance model
* Not applicable for QCP U ( A mode)
Engineering softwar e GX Works2 *1
Language Software version
Japanese version Version1.86Q or later
English version Version1.24A or later
Chinese (Simplified) version Version1.49B or later
Chinese (Traditional) version Version1.49B or later
Korean version Version1.49B or later
*1 For software versions applicable to the modules used, refer to
"Relevant Manuals".
Universal model
Programming
Ladder
language
Number of steps 245 steps (for MELSEC-Q series universal model CPU)
* The number of ste ps of the FB in a program depen ds on the CPU model that is used and
input and output definition.
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
13/49
FBM-M042-B
Page 14
Item Description
The setting value is enabled by turning ON the operating condition set t ing request signal
4) When two or more of these FBs are used, prec aution must be ta ken to avoid repet ition of
8) The output range, sync hronous output m ode, resoluti on mode, and operat ion mod e must
Function description 1) By turning ON FB_EN (Execution command), the DA conver sion enable/disable sett ing
of the specified channel is set .
2) FB operation is one-shot only, triggered by the FB_EN signal.
3)
(Y9) or by executing the operat ing condition setting request FB
(M+Q64DA_RequestSetting).
4) When the input value is inv alid, the FB_ERROR output tur ns O N, pr ocessing is
interrupted, and the error code is stored in ERROR_ID (Error c ode).
Refer to the error code expla nat ion section for details.
Compiling method Macro type
Restrictions and
precautions
1) The FB does not inclu de error recovery processi ng. Program the error recovery
processing separately in accordance with the required system operation.
2) The FB cannot be use d in an interrupt program.
3) Please ensure that the FB_EN signa l is capable of bein g turned OFF by t he program. Do
not use this FB in programs that ar e only executed once such as a su br outine,
FOR-NEXT loop, etc. because it is impossible to turn O FF.
the target channe l.
5) This FB uses index re gisters Z7, Z8 and Z9. Please do not use these index registers in
an interrupt program.
6) Every input must be provided w ith a value for proper FB operation.
7) If the auto refresh is set using GX Configurator-DA or the configuration function of GX
Works 2, using this FB is unnecessary.
be configured to match devices and systems connec t ed t o t he Q64DA m odule.
Configure these settings b y making the GX Works2 switch setting according t o t he
application.
For details on how to use t he int elligent function module s w itc h set t ing, refer to GX
Works2 Operating Manual (Common).
FB operation type Pulsed execution (1 scan execution type)
Application example Refer to "Appendix 1. FB Library Application Examples".
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
14/49
FBM-M042-B
Page 15
Item Description
FB_EN
(Execution command)
FB_ENO
(Execution status)
FB_OK
(Completed without error)
FB_ERROR (Error flag)
ERROR_ID(Error code)0
DA conversion enable/disable
setting write processing
No processing
Writing
No processing
No processing
FB_EN
(Execution command)
FB_ENO
(Execution status)
FB_OK
(Completed without error)
FB_ERROR (Error flag
)
ERROR_ID (Error code)
DA conversion enable/disable
setting write processing
0
10(Decimal)0
Timing chart [When operation complet es without error] [When an error occurs]
Relevant manual
•Digital-Analog Converter Module User 's Manual
•QCPU User's Manual (Har dw ar e D esign, Maintenance and I nspec tion)
•GX Works2 Version 1 Op er at ing Manual (Common)
•GX Works2 Version 1 Op er at ing Manual (Simple Project, Fu nction Block)
Error codes
Error code list
Error code Description
10 (Decimal) The specified target channel is not valid. The tar get channel is not within the range of the
number of channels of the mou nt ed module. Please try again a f ter confirming the sett ing.
Labels
Input labels
Name (Comment) Label name Data
Setting range Description
type
Execution
FB_EN Bit ON, OFF ON: The FB is activat ed.
command
Module start XY
i_Start_IO_No Word Depends on the I/O point
address
Channel No. i_CH Word As shown on the right. Specify the channel numb er.
DA conversion
i_DA_Enable Bit ON, OFF ON: DA conversion enabled.
enable/disable
setting
OFF: The FB is not activ ated.
Specify the starting XY
range. For details, refer to
the CPU user's manual.
address (in hexadecimal)
where the Q64DA module is
mounted. (For example, e nt er
H10 for X10.)
•Q64DA, Q64DAN: 1~4
•All channels at once: 15(0F H)
OFF: DA conversion disabled.
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
FBM-M042-B
15/49
Page 16
Output labels
Name (Comment) Label name Data
type
Initial
value
Description
Execution status FB_ENO Bit OFF ON: Execution command i s O N.
OFF: Execution comman d is OFF.
Completed without
error
FB_OK Bit OFF When ON, it indicates that DA conver s ion
enable/disable setting is completed.
Error flag FB_ERROR Bit OFF When ON, it indicates that an error has occurred.
Error code ERROR_ID Word 0 FB error code output.
FB Version Upgrade History
Version Date Description
1.00A 2010/12/10 First edition
Note
This chapter includes information related to the M+Q64DA_SetDAConver s i on f unction block.
It does not include informat ion o n r estrictions of use such as com bi nation with digital-a nalog converter modules or
programmable controller CP Us.
Before using any Mitsubishi products, pleas e r ead all the relevant manuals.
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
FBM-M042-B
16/49
Page 17
Execution commandB : FB_ENFB_ENO : BExecution status
Modu le start XY addressW : i_Start_IO_NoFB_OK : B
Completed without error
Channel No.W : i_ CHFB_ ERROR : BError f lag
B : i_DA_Out_EnableERROR_I D : WError code
M+Q64DA_SetDAOutput
DA output
enable/disable setting
2.4. M+Q64DA_SetDAOutput (DA output enable/disable sett ing)
FB Name
M+Q64DA_SetDAOutput
Function Overview
Item Description
Function overview Sets the DA output enable/ disab le setting of a specified channel or all channels.
Symbol
Applicable hardware
and software
Digital-analog
Q64DA, Q64DAN
converter module
CPU module
Series Model
MELSEC-Q Series* High performance model
* Not applicable for QCP U ( A mode)
Engineering softwar e Compatible software:
GX Works2 *1
Language Software version
Japanese version Version1.86Q or later
English version Version1.24A or l ater
Chinese (Simplified) version Version1.49B or later
Chinese (Traditional) version Version1.49B or later
Korean version Version1.49B or later
*1 For software versions applicable to the modules used, refer to
Universal model
"Relevant Manuals".
Programming
Ladder
language
Number of steps 218 steps (for MELSEC-Q series universal model CPU)
* The number of ste ps of the FB in a program depen ds on the CPU model that is used and
input and output definition.
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
17/49
FBM-M042-B
Page 18
Item Description
ange, synchronous out put mode, resoluti on mode, an d operat ion mode must
Function description 1) By turning ON FB_EN (Execution command), D A output enable/disable setting of the
specified channel or all channels is set.
2) When the input value is invali d, t he FB_ERROR output turns O N, pr ocessing is
interrupted, and the error code is stored in ERROR_ID (Error c ode).
Refer to the error code expla nat ion section for details.
Compiling method Macro type
Restrictions and
precautions
1) The FB does not inclu de error recovery processi ng. Program the error recovery
processing separately in accordance with the required system operation.
2) The FB cannot be use d in an interrupt program.
3) Please ensure that the FB_EN signa l is capable of bein g turned OFF by t he program. Do
not use this FB in programs that ar e only executed once such as a su br outine,
FOR-NEXT loop, etc. because it is impossible to turn O FF.
4) When two or more of these FBs are used, prec aut ion must be ta ken to av oid repetition of
the target channel.
5) This FB uses index re gisters Z8 and Z9. Please do not use these index registers in an
interrupt program.
6) Every input must be provided w ith a value for proper FB operation.
7) When this FB is used in two or more places, a duplicated c oi l w arning may occur during
compile operation due to the Y signal being operated by index modificat i on. However
this is not a problem and the FB w il l operate without error.
8) The output r
be configured to match devices and systems connec t ed t o t he Q64DA m odule.
Configure these settings b y making the GX Works2 switch setting according t o t he
FB operation type Real-time execution
Application example Refer to "Appendix 1. FB Library Application Examples".
Timing chart [When operation complet es without error] [When an error occurs]
application.
For details on how to use t he int elligent function module s w itc h set t ing, refer to GX
Works2 Operating Manual (Common).
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
18/49
FBM-M042-B
Page 19
Item Description
Relevant manual
•Digital-Analog Converter Module User 's Manual
•QCPU User's Manual (Har dw ar e D esign, Maintenance and I nspec tion)
•GX Works2 Version 1 Op er at ing Manual (Common)
•GX Works2 Version 1 Operating Manu al (Simple Project, Function B loc k)
Error codes
Error code list
Error code Description
10 (Decimal) The specified t ar get channel is not valid. The target channel is not within the range of the
number of channels of the mou nt ed modul e. Pl ease try again after confirming the setting.
Labels
Input labels
Name (Comment) Label name Data
Setting range Description
type
Execution
FB_EN Bit ON, OFF ON: The FB is activat ed.
command
Module start XY
address
i_Start_IO_No Word Depends on the I/O point
range. For details, refer to
the CPU user's manual.
OFF: The FB is not activ ated.
Specify the starting XY
address (in hexadecima l)
where the Q64DA module is
mounted. (For example, e nt er
H10 for X10.)
Channel No. i_CH Word As shown on the right. Specify the channel numb er.
•Q64DA, Q64DAN: 1~4
•All channels at once: 15(0F H)
DA output
enable/disable
setting
i_DA_Out_Enable Bit ON, OFF ON: Outputs the D/A
conversion value.
OFF: Outputs the offset value.
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
FBM-M042-B
19/49
Page 20
When ON, it indicates that DA output enable/di sable
Output labels
Name (Comment) Label name Data
type
Initial
value
Description
Execution status FB_ENO Bit OFF ON: Execution command is ON.
OFF: Execution comman d is OFF.
Completed without
error
FB_OK Bit OFF
setting is completed.
Error flag FB_ERROR Bit OFF When ON, it indicates that an error has occ ur r ed.
Error code ERROR_ID Word 0 FB error code output.
FB Version Upgrade Hist ory
Version Date Description
1.00A 2010/12/10 First edition
Note
This chapter includes information related to the M+Q64DA_SetDAOutput f unc t i on block.
It does not include informat ion o n r estrictions of use such as com bi nation with digital-a nalog converter modules or
programmable controller CP Us.
Before using any Mitsubishi products, pleas e r ead all the relevant manuals.
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
20/49
FBM-M042-B
Page 21
Execution commandB : FB_ENFB_ENO : BExecution status
Modu le start XY addressW : i_Start_IO_NoFB_OK : B
Completed without error
FB_ ERROR : BError flag
ERROR_ID : WError code
M+Q64DA_RequestSetting
2.5. M+Q64DA_RequestSetting (Operating condition sett ing request operation)
FB Name
M+Q64DA_RequestSetting
Function Overview
Item Description
Function overview Enables settings of each f unct ion.
Symbol
Applicable hardware
and software
Digital-analog
Q64DA, Q64DAN
converter module
CPU module
Series Model
MELSEC-Q Series* High performance model
* Not applicable for QCP U ( A mode)
Engineering softwar e GX Works2 *1
Language Software version
Japanese version Version1.86Q or later
English version Version1.24A or later
Chinese (Simplified) version Version1.49B or later
Chinese (Traditional) version Version1.49B or later
Korean version Version1.49B or later
*1 For software versions applicable to the modules used, refer to
"Relevant Manuals".
Universal model
Programming
Ladder
language
Number of steps 173 steps (for MELSEC-Q series universal model CPU)
* The number of ste ps of the FB in a program depen ds on the CPU model that is used and
input and output definition.
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
21/49
FBM-M042-B
Page 22
Item Description
4) When two or more of these FBs are used, prec aution must be ta ken to avoid repet ition of
9) The output range, sync hronous output m ode, resoluti on mode, and operat ion mod e must
FB_
EN (Execution command)
FB_
ENO (
Execution status)
FB_
OK
(Completed without error)
FB
_ERROR (Error flag)
ERROR_ID(Error code
)0
Operating condition setting
request (Y signal)
Operating condition setting
completed flag (
X signal)
Function description 1) By turning ON FB_EN (Execution command), set t ings of each function are enable d.
2) The buffer me m or y is updated by executing the DA conversion enable/disable setting
FB/DA output enable/disable s et ting FB. The set data, however, is not enabled . Execute
this FB to enable the settings .
Compiling method Macro type
Restrictions and
precautions
1) The FB does not inclu de error recovery processi ng. Program the error recovery
processing separately in accordance with the required system operation.
2) The FB cannot be used in an interrupt program.
3) Please ensure that the FB_EN signa l is capable of bein g turned OFF by t he program. Do
not use this FB in programs that ar e only executed once such as a su br outine,
FOR-NEXT loop, etc. because it is impossible to turn O FF.
the target channel.
5) This FB turns ON/O FF the operating condition setting request signal. Please note that
the DA conversion is stopped dur ing operation of this FB.
6) This FB uses index re gister Z9. Please do not use t his ind ex r egister in an interrupt
program.
7) Every input must be provided w ith a value for proper FB operation.
8) When this FB is used in two or more places, a duplicated c oi l w arning may occur during
compile operation due to the Y signal being operated by index modificat i on. However
this is not a problem and the FB w il l operate without error.
be configured to match devices and systems connec t ed t o the Q64DA m odule.
Configure these settings b y making the GX Works2 switch setting according t o t he
application.
For details on how to use t he int elligent function module s w itc h set t ing, refer to GX
Works2 Operating Manual (Common).
FB operation type Pulsed execution (multiple scan execut i on type)
Application example Refer to "Appendix 1. FB Library Application Examples".
Timing chart
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
22/49
FBM-M042-B
Page 23
Item Description
Relevant manual
•Digital-Analog Converter Module User 's Manual
•QCPU User's Manual (Har dw ar e D esign, Maintenance and I nspec tion)
•GX Works2 Version 1 Op er at ing Manual (Common)
•GX Works2 Version 1 Op er at ing Manual (Simple Project, Fu nction Block)
Error codes
Error code list
Error code Description
None No errors are stored for this FB.
Labels
Input labels
Name (Comment) Label name Data
type
Execution
FB_EN Bit ON, OFF ON: The FB is activat ed.
command
Setting range Description
OFF: The FB is not activ ated.
Module start XY
address
i_Start_IO_No Word Depends on the I/O point
range. For details, refer to
the CPU user's manual.
Specify the starting XY
address (in hexadecima l)
where the Q64DA module is
mounted. (For example, e nt er
H10 for X10.)
Output labels
Name (Comment) Label name Data
type
Initial
value
Description
Execution status FB_ENO Bit OFF ON: Execution command is ON.
OFF: Execution comman d is OFF.
Completed without
error
FB_OK Bit OFF When ON, it indicates that the enabled operat ion of
each setting is completed.
Error flag FB_ERROR Bit OFF When ON, it indicates that an error has occurred.
Error code ERROR_ID Word 0 FB error code output.
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
FBM-M042-B
23/49
Page 24
FB Version Upgrade Hist ory
Version Date Description
1.00A 2010/12/10 First edition
Note
This chapter includes information related to the M+Q64DA_RequestSetti ng f unction block.
It does not include informat ion o n r estrictions of use such as com bi nation with digital-a nalog converter modules or
programmable controller CP Us.
Before using any Mitsubishi products, pleas e r ead all the relevant manuals.
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
FBM-M042-B
24/49
Page 25
Execution commandB : FB_ENFB_ENO : BExecution status
Modu le start XY addressW : i_Start_IO_NoFB_ OK : B
Item Description
Function overview Performs offset setting of a specified channe l.
Symbol
Applicable hardware
and software
Digital-analog
Q64DA, Q64DAN
converter module
CPU module
Series Model
MELSEC-Q Series* High performance model
* Not applicable for QCP U ( A mode)
Engineering softwar e GX Works2 *1
Language Software version
Japanese version Version1.86Q or later
English version Version1.24A or later
Chinese (Simplified) version Version1.49B or later
Chinese (Traditional) version Version1.49B or later
Korean version Version1.49B or later
*1 For software versions applicable to the modules used, refer to
Universal model
"Relevant Manuals".
Programming
Ladder
language
Number of steps 327 steps (for MELSEC-Q series universal model CPU)
* The number of ste ps of the FB in a program depen ds on the CPU model that is used and
input and output definition.
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
25/49
FBM-M042-B
Page 26
Item Description
By turning ON FB_EN (Execution command), the offset value of the specified channel is
o adjust the D/A output, set i_Adjust _Amount (Offset/gain adjustment amount) and t ur n
output mode, resolution mode, an d operati on mode must
Function description 1)
set.
2) T
OFF i_Value_Change (Setting value change co m m and) and then ON while FB_EN
(Execution command) is ON.
3) When the input value is invali d, t he FB_ERROR output turns O N, pr ocessing is
interrupted, and the error code is stored in ERROR_ID (Error c ode).
Refer to the error code expla nat ion section for details.
Compiling method Macro type
Restrictions and
precautions
1) The FB does not inclu de error recovery processi ng. Program the error recovery
processing separately in accordance with the required system operation.
2) The FB cannot be use d in an interrupt program.
3) Please ensure that the FB_EN signa l is capabl e of being turned OFF by the program. Do
not use this FB in programs that ar e only executed once such as a su br outine,
FOR-NEXT loop, etc. because it is impossible to turn O FF.
4) When two or more of these FBs are used, prec aution must be ta ken to avoid repet ition of
the target channel.
5) This FB uses index re gisters Z7, Z8 and Z9. Please do not use these index registers in
an interrupt program.
6) Every input must be provided w ith a value for proper FB operation.
7) When this FB is used in two or more places, a duplicated coil warning may occ ur during
compile operation due to the Y signal being operated by index modificat i on. However
this is not a problem and the FB w il l operate without error.
8) The output range, sync hronous
be configured to match devices and systems connec t ed t o t he Q64DA m odule.
Configure these settings b y making the GX Works2 switch setting according t o t he
application.
For details on how to use t he int elligent function modul e s w itc h set t ing, refer to GX
Works2 Operating Manual (Common).
FB operation type Pulsed execution (multiple scan execut i on type)
Application example Refer to "Appendix 1. FB Library Application Examples".
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
26/49
FBM-M042-B
Page 27
Item Description
FB_EN(Execution command)
FB_ENO (Execution status)
Operation mode
CH offset command
Normal modeOffset/gain setting mode
Channel change request (YB)
User range write request
(YA)
FB_OK
(Completed without error)
FB_ERROR (Error flag)
ERROR_ID(Error code)0
i_Value_Change
(Setting value change command)
Setting value change request
(YC)
Normal mode
i_Write_Offset
(User range write command)
FB_EN(Execution command)
FB_ENO(Execution status)
Operation mode
CH offset command
Normal mode
Channel change request (YB)
User range write request
(YA)
FB_OK
(Completed without error)
FB_ERROR (Error flag)
ERROR_ID(Error code)0
i_Value_Change
(Setting value change command)
Setting value change request
(YC)
i_Write_Offset
(User range write command)
010(Decimal)
Timing chart
[When operation complet es without error]
[When an error occurs]
Relevant manual
•Digital-Analog Converter Module User's Manual
•QCPU User's Manual (Har dw ar e D esign, Maintenance and I nspec tion)
•GX Works2 Version 1 Op er at ing Manual (Common)
•GX Works2 Version 1 Op er at ing Manual (Simple Project, Fu nction Block)
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
FBM-M042-B
27/49
Page 28
Error codes
Error code list
Error code Description
10 (Decimal) The specified target channel is not valid. The tar get channel is not within the range of the
number of channels of the mounted module. Pl ease try again after confirming the setting.
Labels
Input labels
Name (Comment) Label name Data
Setting range Description
type
Execution
command
Module start XY
address
FB_EN Bit ON, OFF ON: The FB is activat ed.
OFF: The FB is not activated.
i_Start_IO_No Word Depends on the I/O point
range. For details, refer to
the CPU user's manual.
Specify the starting XY
address (in hexadecima l)
where the Q64DA module is
mounted. (For example, e nt er
H10 for X10.)
Channel No. i_CH Word 1~4 Specify the channel number.
Offset adjustment
amount
i_Adjust_Amount Word -3000~3000 Set the offset adjustment
amount of the specified
channel.
Setting value
change command
i_Value_Change Bit ON, OFF Turn ON to change t he D/A
output.
Turn OFF after changing the
User range write
command
output.
i_Write_Offset Bit ON, OFF Turn ON to wr ite t he adjusted
offset value to the flas h
memory.
Turn OFF after writing is
completed.
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
FBM-M042-B
28/49
Page 29
Output labels
Name (Comment) Label name Data
type
Initial
value
Description
Execution status FB_ENO Bit OFF ON: Execution command is ON.
OFF: Execution com mand is OFF.
Completed without
error
FB_OK Bit OFF When ON, it indicates that the offs et set ting of the
specified channel is co mpleted.
Error flag FB_ERROR Bit OFF When ON, it indicates that an error has occurred.
Error code ERROR_ID Word 0 FB error code output.
FB Version Upgrade Hist ory
Version Date Description
1.00A 2010/12/10 First edition
1.01B 2015/03/27 Optimized program
( Not change this FB function )
Note
This chapter includes information related to the M+Q64DA_SetOffs etVal function block.
It does not include informat ion o n r estrictions of use such as com bi nation with digital-a nalog converter modules or
programmable controller CP Us.
Before using any Mitsubishi products, pleas e r ead all the relevant manuals.
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
FBM-M042-B
29/49
Page 30
Execution commandB : FB_ENFB_ENO : BExecution status
Modu le start XY addressW : i_Start_IO_NoFB_OK : B
Completed without error
Channel No.W : i_CHFB_ERROR : BError flag
Gain adjustment amountW : i_Adjust_AmountERROR_ID : WError code
Setting value change commandB : i_Value_Change
User range write commandB : i_Write_Gain
M+Q64DA_SetGainVal
2.7. M+Q64DA_SetGainVal (Gain setting)
FB Name
M+Q64DA_SetGainVal
Function Overview
Item Description
Function overview Performs gain setting of a specified channel.
Symbol
Applicable hardware
and software
Digital-analog
Q64DA, Q64DAN
converter module
CPU module
Series Model
MELSEC-Q Series* High performance model
* Not applicable for QCP U ( A mode)
Engineering softwar e GX Works2 *1
Language Software version
Japanese version Version1.86Q or later
English version Version1.24A or later
Chinese (Simplified) version Version1.49B or later
Chinese (Traditional) version Version1.49B or later
Korean version Version1.49B or later
*1 For software versions applicable to the modules used, refer to
"Relevant Manuals".
Universal model
Programming
Ladder
language
Number of steps 325 steps (for MELSEC-Q series universal model CPU)
* The number of ste ps of the FB in a program depen ds on the CPU model that is used and
input and output definition.
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
30/49
FBM-M042-B
Page 31
Item Description
To adjust the D/A output, set i_Adjus t _Amount (Offset/gain adjustment amount) and t ur n
utput range, synchr onous outp ut mode, res olution mode, and op eration mode must
Function description 1) By turning ON FB_EN (Execution command), t he gai n value of the specified channel i s
set.
2)
OFF i_Value_Change (Setting value change co m m and) and then ON while FB_EN
(Execution command) is ON.
3) When the input value is invali d, t he FB_ERROR output turns O N, pr ocessing is
interrupted, and the error code is stored in ERROR_ID (Error c ode).
Refer to the error code expla nat ion section for details.
Compiling method Macro type
Restrictions and
precautions
1) The FB does not inclu de error recovery processi ng. Program the error recovery
processing separately in accordance with the required system operation.
2) The FB cannot be use d in an interrupt program.
3) Please ensure that the FB_EN signa l is capable of bein g turned OFF by t he program. Do
not use this FB in programs that ar e only executed once such as a su br outine,
FOR-NEXT loop, etc. because it is impossible to turn O FF.
4) When two or more of these FBs are used, prec aut ion must be ta ken to av oid repetition of
the target channel.
5) This FB uses index re gisters Z7, Z8 and Z9. Please do not use these index registers in
an interrupt program.
6) Every input must be provided w ith a value for proper FB operation.
7) When this FB is used in two or more places, a duplicated c oi l w arning may occur during
compile operation due to the Y signal being operated by index modificat i on. However
this is not a problem and the FB w il l operate without error.
8) The o
be configured to match devices and systems connec t ed t o t he Q64DA m odule.
Configure these settings b y making the GX Works2 switch setting according t o t he
application.
For details on how to use the intelligent function mo dule switch setting, refer to G X
Works2 Operating Manual (Common).
FB operation type Pulsed execution (multiple scan execut i on type)
Application example Refer to "Appendix 1. FB Library Application Examples".
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
31/49
FBM-M042-B
Page 32
Item Description
FB_EN(Execution command)
FB_ENO(Execution status)
Operation mode
CH offset command
Normal mode
Offset/gain setting mode
Channel change request (YB)
User range write request
(YA)
FB_OK
(Completed without error)
FB_ERROR (Error flag)
ERROR_ID (Error code)0
i_Value_Change
(Setting value change command)
Setting value change request
(YC)
Normal mode
i_Write_Gain
(User range write command)
FB
_
EN
(Execution command
)
FB
_ENO (
Execution status)
Operation mode
CH offset command
Normal mode
Channel change request (
YB)
User range write request (YA)
FB_OK
(Completed without error)
FB_ERROR (Error flag
)
ERROR_ID
(Error code)0
i
_
Value_
Change
(
Setting value change command)
Setting value change request
(YC)
i_Write
_Gain
(User range write command)
0
10
(Decimal)
Timing chart
[When operation complet es without error]
[When an error occurs]
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
FBM-M042-B
32/49
Page 33
Item Description
Relevant manual
•Digital-Analog Converter Module User 's Manual
•QCPU User's Manual (Har dw ar e D esign, Maintenance and I nspec tion)
•GX Works2 Version 1 Op er at ing Manual (Common)
•GX Works2 Versio n 1 Operating Manual (Simp le Pr oject, Function Block)
Error codes
Error code list
Error code Description
10 (Decimal) The specified target channel is not v alid. The target channel is not within the range of the
number of channels of the mou nt ed mo dule. Please try again after confirming the setting.
Labels
Input labels
Name (Comment) Label name Data
Setting range Description
type
Execution
FB_EN Bit ON, OFF ON: The FB is activat ed.
command
Module start XY
address
i_Start_IO_No Word Depends on the I/O point
range. For details, refer to
the CPU user's manual.
OFF: The FB is not activ ated.
Specify the starting XY
address (in hexadecima l)
where the Q64DA module is
mounted. (For example, e nt er
H10 for X10.)
Channel No. i_CH Word 1~4 Specify the channel number.
Gain adjustment
amount
i_Adjust_Amount Word -3000~3000 Specify the gain adjustment
amount of the specified
channel.
Setting value
change command
i_Value_Change Bit ON, OFF Turn ON to change t he D/A
output.
Turn OFF after changing the
output.
User range write
command
i_Write_Gain Bit ON, OFF Turn ON to write the adj usted
gain value to the flash
memory.
Turn OFF after writing is
completed.
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
FBM-M042-B
33/49
Page 34
Output labels
Name (Comment) Label name Data
type
Initial
value
Description
Execution status FB_ENO Bit OFF ON: Execution command is ON.
OFF: Execution command is OFF.
Completed without
error
FB_OK Bit OFF When ON, it indicates that the gain setting o f the
specified channel is co mpleted.
Error flag FB_ERROR Bit OFF When ON, it indicates that an error has occurred.
Error code ERROR_ID Word 0 FB error code output.
FB Version Upgrade Hist ory
Version Date Description
1.00A 2010/12/10 First edition
1.01B 2015/03/27 Optimized program
( Not change this FB function )
Note
This chapter includes information related to the M+Q64DA_SetGainVal function block.
It does not include informat ion o n r estrictions of use such as com bi nation with digital-a nalog converter modules or
programmable controller CP Us.
Before using any Mitsubishi products, pleas e r ead all the relevant manuals.
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
FBM-M042-B
34/49
Page 35
Execution commandB : FB_ENFB_ENO : BExecution status
Modu le start XY addressW : i_Start_IO_NoFB_OK : B
Completed without error
Error reset requestB : i_ErrorReseto_UNIT_ERROR : BModule e rror
o_UNIT_ERR_CODE : WModule error code
FB_ ERROR : BError f lag
ERROR_ID : WError code
M+Q64DA_ErrorOperation
2.8. M+Q64DA_ErrorOperation (Error operation)
FB Name
M+Q64DA_ErrorOperation
Function Overview
Item Description
Function overview Monitors error codes and per f orms error reset.
Symbol
Applicable hardware
and software
Digital-analog
Q64DA, Q64DAN
converter module
CPU module
Series Model
MELSEC-Q Series* High performance model
* Not applicable for QCP U ( A mode)
Engineering softwar e GX Works2 *1
Language Software version
Japanese version Version1.86Q or later
English version Version1.24A or later
Chinese (Simplified) version Version1.49B or later
Chinese (Traditional) version Version1.49B or later
Korean version Version1.49B or later
*1 For software versions applicable to the modules used, refer to
Universal model
"Relevant Manuals".
Programming
Ladder
language
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
35/49
FBM-M042-B
Page 36
Item Description
7) The output range, sync hronous output m ode, resoluti on mode, and operat ion mod e must
FB
_EN (Execution command
)
FB_
ENO (Execution status)
Error (X signal)
o_UNIT_ERR_CODE
(Module error code)
0
0
i_ErrorReset (Error clear request)
FB_OK
(Completed without error)
Error reset (Y signal)
o_UNIT_ERROR
(Module error)
FB_ERROR (Error flag)
ERROR_ID(Error code)
0
Module error code
Number of steps 185 steps (for MELSEC-Q series universal model CPU)
* The number of ste ps of the FB in a program depen ds on the CPU model that is used and
input and output definition.
Function description 1) By turning ON FB_EN (Execution command), er r or inf ormation is read.
2) When the error reset request is ON, error clear is performed.
Compiling method Macro type
Restrictions and
precautions
1) The FB does not inclu de error recovery processi ng. Program the error rec overy
processing separately in accordance with the required system operation.
2) The FB cannot be use d in an interrupt program.
3) Please ensure that the FB_EN signa l is capable of bein g turned OFF by t he program. Do
not use this FB in programs that ar e only executed once such as a subroutine,
FOR-NEXT loop, etc. because it is impossible to turn O FF.
4) This FB uses index re gisters Z8 and Z9. Please do not use these index registers in an
interrupt program.
5) Every input must be provided w ith a value for proper FB oper ation.
6) When this FB is used in two or more places, a duplicated c oi l w arning will occur during
compile operation due to the Y signal being operated by index modificat i on. However
this is not a problem and the FB w il l operate without error.
be configured to match devices and systems connec t ed t o t he Q64DA m odule.
Configure these settings b y making the GX Works2 switch setting according t o t he
application.
For details on how to use t he int elligent function module s w itc h set t ing, refer to GX
Works2 Operating Manual (Common).
FB operation type Real-time execution
Application example Refer to "Appendix 1. FB Library Application Examples".
Timing chart
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
36/49
FBM-M042-B
Page 37
Item Description
Relevant manual
•Digital-Analog Converter Module User 's Manual
•QCPU User's Manual (Har dw ar e D esign, Maintenance and I nspec tion)
•GX Works2 Version 1 Op er at ing Manual (Common)
•GX Works2 Version 1 Op er at ing Manual (Simple Project, Fu nction Block)
Error codes
Error code list
Error code Description
None No errors are stored for this FB.
Labels
Input labels
Name (Comment) Label name Data type Setting range Description
Execution
command
Module start XY
FB_EN Bit ON, OFF ON: The FB is activat ed.
OFF: The FB is not activ ated.
i_Start_IO_No Word Depends on the I/O
Specify the starting XY address (in
address
point range. For
details, refer to the
CPU user's manual.
hexadecimal) where the Q64DA
module is mounted. (For e x ample,
enter H10 for X10.)
Error reset request i_ErrorReset Bit ON, OFF Turn ON to perform the error reset.
Turn OFF after error reset is
completed.
Output labels
Name (Comment) Label name Data
type
Initial
value
Description
Execution status FB_ENO Bit OFF ON: Execution command is ON. (Modu le err or
being monitored)
OFF: Execution comman d is OFF.
Completed without
error
Module error o_UNIT_ERR
FB_OK Bit OFF When ON, it indic at es executing the error reset
command is completed.
Bit OFF When ON, it indicates a module error has oc cur r ed.
OR
Module error code o_UNIT_ERR_
Word 0 Stor e a code for an error occurring.
CODE
Error flag FB_ERROR Bit OFF When ON, it indicates that an error has occurred.
Error code ERROR_ID Word 0 FB error code output.
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
FBM-M042-B
37/49
Page 38
FB Versi on Upgrade History
Version Date Description
1.00A 2010/12/10 First edition
Note
This chapter includes information related to the M+Q64DA_ErrorOperation function block.
It does not include informat ion o n r estrictions of use such as com bi nation with digital-a nalog converter modules or
programmable controller CPUs.
Before using any Mitsubishi products, pleas e r ead all the relevant manuals.
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
FBM-M042-B
38/49
Page 39
Appendix 1. FB Library Application Examples
CPU module (QCPU)
D/A converter module (Q64DA)
Power supply module
X/Y00
to
X/Y0F
X10
to
X1F
Y20
to
Y2F
Input module (QX40)
Output module (QY40)
Q64DA FB app l icat i on examples are as follows.
1) System configuration
Reminder
• Every input must be prov ided with a value for proper FB op er at ion.
If not set, the values will be unsp ecified.
• Abbreviations may be used in th e label c o mment s due t o the li mit atio n on the nu mber of t he char acters t o display in
GX Works2.
MELSEC-Q Digital-A nal og Conv er ter Mod ule FB Libr a r y Referenc e Man ua l
FBM-M042-B
39/49
Page 40
External input (commands)
R
elay
DeviceFB function name
Application (ON details)DeviceFB function nameApplication (ON details)
X10 Error operationError reset requestM0DA conversion data write request
M1DA conversion data write FB ready
External output (checks)
M
2DA conversion data write complete
DeviceFB function nameApplication (ON details)M3DA conversion data write (All CHs) request
Y20
DA conversion data write
DA conversion data write FB errorM4DA conversion data write (All CHs) FB ready