background image

 

 

2.6.  M+Q64DA_SetOffsetVal (Offset setting) 

FB Name 

M+Q64DA_SetOffsetVal 

 

Function Overview 

 

Item 

Description 

Function overview 

Performs offset setting of a specified channel. 

Symbol 

Execution command

B : FB_EN

FB_ENO : B

Execution status

Module start XY address

W : i_Start_IO_No

FB_OK : B

Completed without error

Channel No.

W : i_CH

FB_ERROR : B

Error flag

Offset adjustment amount

W : i_Adjust_Amount

ERROR_ID : W

Error code

Setting value change command

B : i_Value_Change

User range write command

B : i_Write_Offset

M+Q64DA_SetOffsetVal

 

Applicable hardware 

and software 

Digital-analog 

converter module 

Q64DA, Q64DAN 

CPU module 

 

Series 

Model 

MELSEC-Q Series* 

High performance model 

Universal model 

* Not applicable for QCPU (A mode) 

Engineering software 

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". 

Programming 

language 

Ladder 

Number of steps 

327 steps (for MELSEC-Q series universal model CPU) 

* The number of steps of the FB in a program depends on the CPU model that is used and 

input and output definition. 

MELSEC-Q Digital-Analog Converter Module FB Library Reference Manual 

FBM-M042-B

 

25/49

 

 

Содержание MELSEC-Q64DA

Страница 1: ...A conversion data write 5 2 2 M Q64DA_WriteAllDAVal DA conversion data write All CHs 9 2 3 M Q64DA_SetDAConversion DA conversion enable disable setting 13 2 4 M Q64DA_SetDAOutput DA output enable disable setting 17 2 5 M Q64DA_RequestSetting Operating condition setting request operation 21 2 6 M Q64DA_SetOffsetVal Offset setting 25 2 7 M Q64DA_SetGainVal Gain setting 30 2 8 M Q64DA_ErrorOperation ...

Страница 2: ...edition FBM M042 B 2015 03 27 1 Added applicable GX Works2 Version This FB is able to install on GX Works2 of all language versions 2 Added the following FB Version Upgrade History M Q64DA_SetOffsetVal M Q64DA_SetGainVal MELSEC Q Digital Analog Converter Module FB Library Reference Manual FBM M042 B 2 49 ...

Страница 3: ...s the DA conversion enable disable setting of a specified channel or all channels M Q64DA_SetDAOutput Sets the DA output enable disable setting of a specified channel or all channels M Q64DA_RequestSetting Enables settings of each function M Q64DA_SetOffsetVal Performs offset setting of a specified channel M Q64DA_SetGainVal Performs gain setting of a specified channel M Q64DA_ErrorOperation Monit...

Страница 4: ...dule User s Manual QCPU User s Manual Hardware Design Maintenance and Inspection GX Works2 Version 1 Operating Manual Common GX Works2 Version 1 Operating Manual Simple Project Function Block 1 5 Note Please make sure to read user s manuals for the corresponding products before using the products MELSEC Q Digital Analog Converter Module FB Library Reference Manual FBM M042 B 4 49 ...

Страница 5: ...es Model MELSEC Q Series High performance model Universal model Not applicable for QCPU A mode Engineering software 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 applicabl...

Страница 6: ...these index registers in an interrupt program 6 Every input must be provided with 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 8 The output range synchronous output mode resolution mode and operation mode must be configured to match devices and systems connected to the Q64DA module Con...

Страница 7: ...epends on the I O point range For details refer to the CPU user s manual Specify the starting XY address in hexadecimal where the Q64DA module is mounted For example enter 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 channel For details on the setting range of the digital va...

Страница 8: ... M Q64DA_WriteDAVal function block It does not include information on restrictions of use such as combination with digital analog converter modules or programmable controller CPUs Before using any Mitsubishi products please read all the relevant manuals MELSEC Q Digital Analog Converter Module FB Library Reference Manual FBM M042 B 8 49 ...

Страница 9: ...og converter module Q64DA Q64DAN CPU module Series Model MELSEC Q Series High performance model Universal model Not applicable for QCPU A mode Engineering software 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 Version...

Страница 10: ... 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 8 The output range synchronous output mode resolution mode and operation mode must be configured to match devices and systems connected to the Q64DA module Configure these settings by making the GX Works2 switch setting according to the application...

Страница 11: ...epends on the output range setting and resolution setting of the channel 1 Writes the digital conversion value of the channel 1 Channel 2 digital value i_DA_ValueCH2 Word Depends on the output range setting and resolution setting of the channel 2 Writes the digital conversion value of the channel 2 Channel 3 digital value i_DA_ValueCH3 Word Depends on the output range setting and resolution settin...

Страница 12: ...or 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_WriteAllDAVal function block It does not include information on restrictions of use such as combination with digital analog converter modules or programmable controller CPUs Before using any ...

Страница 13: ... Q64DA Q64DAN CPU module Series Model MELSEC Q Series High performance model Universal model Not applicable for QCPU A mode Engineering software 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 Fo...

Страница 14: ... Do not use this FB in programs that are only executed once such as a subroutine FOR NEXT loop etc because it is impossible to turn OFF 4 When two or more of these FBs are used precaution must be taken to avoid repetition of the target channel 5 This FB uses index registers Z7 Z8 and Z9 Please do not use these index registers in an interrupt program 6 Every input must be provided with a value for ...

Страница 15: ... 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 mounted module Please try again after confirming the setting Labels Input labels Name Comment Label name Data type Setting range Description Execution command FB_EN Bit ON OFF ON The FB is activated OFF The FB is not activate...

Страница 16: ...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_SetDAConversion function block It does not include information on restrictions of use such as combination with digital analog converter modules or programmable controller CPUs Before using any M...

Страница 17: ...dule Series Model MELSEC Q Series High performance model Universal model Not applicable for QCPU A mode Engineering software Compatible software 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 Fo...

Страница 18: ...operation 7 When this FB is used in two or more places a duplicated coil warning may occur during compile operation due to the Y signal being operated by index modification However this is not a problem and the FB will operate without error 8 The output range synchronous output mode resolution mode and operation mode must be configured to match devices and systems connected to the Q64DA module Con...

Страница 19: ...labels Name Comment Label name Data type Setting range Description Execution command FB_EN Bit ON OFF ON The FB is activated OFF The FB is not activated 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 hexadecimal where the Q64DA module is mounted For example enter H10 for X10 Channel No i_CH Wor...

Страница 20: ...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_SetDAOutput function block It does not include information on restrictions of use such as combination with digital analog converter modules or programmable controller CPUs Before using any Mitsu...

Страница 21: ...h performance model Universal model Not applicable for QCPU A mode Engineering software 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 ...

Страница 22: ...tion of this FB 6 This FB uses index register Z9 Please do not use this index register in an interrupt program 7 Every input must be provided with a value for proper FB operation 8 When this FB is used in two or more places a duplicated coil warning may occur during compile operation due to the Y signal being operated by index modification However this is not a problem and the FB will operate with...

Страница 23: ...ule 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 hexadecimal where the Q64DA module is mounted For example enter 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 command is OFF Completed wit...

Страница 24: ...Q64DA_RequestSetting function block It does not include information on restrictions of use such as combination with digital analog converter modules or programmable controller CPUs Before using any Mitsubishi products please read all the relevant manuals MELSEC Q Digital Analog Converter Module FB Library Reference Manual FBM M042 B 24 49 ...

Страница 25: ...odule Q64DA Q64DAN CPU module Series Model MELSEC Q Series High performance model Universal model Not applicable for QCPU A mode Engineering software 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...

Страница 26: ...tc because it is impossible to turn OFF 4 When two or more of these FBs are used precaution must be taken to avoid repetition of the target channel 5 This FB uses index registers Z7 Z8 and Z9 Please do not use these index registers in an interrupt program 6 Every input must be provided with a value for proper FB operation 7 When this FB is used in two or more places a duplicated coil warning may o...

Страница 27: ..._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 0 10 Decimal Relevant manual Digital Analog Converter Module User s...

Страница 28: ...e For details refer to the CPU user s manual Specify the starting XY address in hexadecimal where the Q64DA module is mounted For example enter H10 for X10 Channel No i_CH Word 1 4 Specify the channel number Offset adjustment amount i_Adjust_Amoun t 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 the ...

Страница 29: ...OR_ID Word 0 FB error code output FB Version Upgrade History 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_SetOffsetVal function block It does not include information on restrictions of use such as combination with digital analog converter modules or programmable c...

Страница 30: ...64DA Q64DAN CPU module Series Model MELSEC Q Series High performance model Universal model Not applicable for QCPU A mode Engineering software 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 ...

Страница 31: ...c because it is impossible to turn OFF 4 When two or more of these FBs are used precaution must be taken to avoid repetition of the target channel 5 This FB uses index registers Z7 Z8 and Z9 Please do not use these index registers in an interrupt program 6 Every input must be provided with a value for proper FB operation 7 When this FB is used in two or more places a duplicated coil warning may oc...

Страница 32: ...nge command Setting value change request YC Normal mode i_Write_Gain User range write command When an error occurs 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 r...

Страница 33: ... OFF ON The FB is activated OFF The FB is not activated 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 hexadecimal where the Q64DA module is mounted For example enter H10 for X10 Channel No i_CH Word 1 4 Specify the channel number Gain adjustment amount i_Adjust_Amoun t Word 3000 3000 Specify t...

Страница 34: ...OR_ID Word 0 FB error code output FB Version Upgrade History 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 information on restrictions of use such as combination with digital analog converter modules or programmable con...

Страница 35: ...peration Applicable hardware and software Digital analog converter module Q64DA Q64DAN CPU module Series Model MELSEC Q Series High performance model Universal model Not applicable for QCPU A mode Engineering software 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 Traditiona...

Страница 36: ...nput must be provided with a value for proper FB operation 6 When this FB is used in two or more places a duplicated coil warning will occur during compile operation due to the Y signal being operated by index modification However this is not a problem and the FB will operate without error 7 The output range synchronous output mode resolution mode and operation mode must be configured to match dev...

Страница 37: ...exadecimal where the Q64DA module is mounted For example 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 Module error being monitored OFF Execution command is OFF Completed witho...

Страница 38: ...Q64DA_ErrorOperation function block It does not include information on restrictions of use such as combination with digital analog converter modules or programmable controller CPUs Before using any Mitsubishi products please read all the relevant manuals MELSEC Q Digital Analog Converter Module FB Library Reference Manual FBM M042 B 38 49 ...

Страница 39: ...F X10 to X1F Y20 to Y2F Input module QX40 Output module QY40 Reminder Every input must be provided with a value for proper FB operation If not set the values will be unspecified Abbreviations may be used in the label comments due to the limitation on the number of the characters to display in GX Works2 MELSEC Q Digital Analog Converter Module FB Library Reference Manual FBM M042 B 39 49 ...

Страница 40: ...B ready M13 DA output enable disable setting complete Data register M14 Operating condition setting request Device FB function name Application ON details M15 Operating condition setting request FB ready D0 DA conversion data write DA conversion data write FB error code M16 Operating condition setting request operation FB complete D1 DA conversion data write All CHs DA conversion data write All CH...

Страница 41: ...example settings a Common setting Input and output item Value Description Module start XY address 0 Specify the starting XY address where the Q64DA is mounted MELSEC Q Digital Analog Converter Module FB Library Reference Manual FBM M042 B 41 49 ...

Страница 42: ...5 Programs M Q64DA_WriteDAVal DA conversion data write MELSEC Q Digital Analog Converter Module FB Library Reference Manual FBM M042 B 42 49 ...

Страница 43: ...M Q64DA_WriteAllDAVal DA conversion data write All CHs MELSEC Q Digital Analog Converter Module FB Library Reference Manual FBM M042 B 43 49 ...

Страница 44: ...M Q64DA_SetDAConversion DA conversion enable disable setting MELSEC Q Digital Analog Converter Module FB Library Reference Manual FBM M042 B 44 49 ...

Страница 45: ...M Q64DA_SetDAOutput DA output enable disable setting MELSEC Q Digital Analog Converter Module FB Library Reference Manual FBM M042 B 45 49 ...

Страница 46: ...M Q64DA_RequestSetting Operating condition setting request operation MELSEC Q Digital Analog Converter Module FB Library Reference Manual FBM M042 B 46 49 ...

Страница 47: ...M Q64DA_SetOffsetVal Offset setting MELSEC Q Digital Analog Converter Module FB Library Reference Manual FBM M042 B 47 49 ...

Страница 48: ...M Q64DA_SetGainVal Gain setting MELSEC Q Digital Analog Converter Module FB Library Reference Manual FBM M042 B 48 49 ...

Страница 49: ...M Q64DA_ErrorOperation Error operation MELSEC Q Digital Analog Converter Module FB Library Reference Manual FBM M042 B 49 49 ...

Отзывы: