MELSOFT Library

FB for the analog input/output module (other languages)

This FB library is for the MELSEC-L analog input/output module.

Applicable model L60AD2DA2
File name Size Last update Version
fb-l60ad2da2_v110l_e.zip 9,144,361 bytes Apr. 20, 2015 1.10L
Relevant manual Type Language
FBM-M111-B MELSEC-L Analog Input/Output Module FB Library Reference Manual English
FBM-M112-B Chinese (simplified)

A/D conversion

FB name Function name Description Ver.
M+L60AD2DA2_AD_ReadADVal Read A/D conversion data Reads the A/D conversion data of the specified A/D conversion channel (CH1 or CH2). 1.00A
M+L60AD2DA2_AD_ReadAllADVal Read A/D conversion data (all CHs) Reads the A/D conversion data of the A/D conversion channels (CH1 and CH2). 1.00A
M+L60AD2DA2_AD_ReadScalingVal Read A/D conversion scaling value Reads the scaling value of the specified A/D conversion channel (CH1 or CH2). 1.00A
M+L60AD2DA2_AD_ReadAllScalingVal Read A/D conversion scaling value (all CHs) Reads the scaling values of the A/D conversion channels (CH1 and CH2). 1.00A
M+L60AD2DA2_AD_SetADConversion A/D conversion enable/disable setting Enables or disables the A/D conversion for the specified A/D conversion channel (CH1 or CH2) or all the A/D conversion channels (CH1 and CH2). 1.00A
M+L60AD2DA2_AD_SetAverage A/D conversion averaging process setting Sets the averaging processing of the specified A/D conversion channel (CH1 or CH2). 1.00A
M+L60AD2DA2_AD_SetScaling A/D conversion scaling setting Sets the scaling of the specified A/D conversion channel (CH1 or CH2). 1.00A
M+L60AD2DA2_AD_SetInputSignalErr A/D conversion input signal error detection setting Sets the input signal error detection of the specified A/D conversion channel (CH1 or CH2). 1.00A
M+L60AD2DA2_AD_SetOffsetVal A/D conversion offset setting Sets the offset of the specified A/D conversion channel (CH1 or CH2). 1.00A
M+L60AD2DA2_AD_SetGainVal A/D conversion gain setting Sets the gain of the specified A/D conversion channel (CH1 or CH2). 1.00A
M+L60AD2DA2_AD_ShiftOperation A/D conversion shift operation Adds the conversion value shift amount to the digital value. 1.00A
M+L60AD2DA2_AD_DiffOperation A/D difference conversion Outputs the remaining value after subtraction of the reference value from the digital value 1.00A
M+L60AD2DA2_AD_ClipOperation A/D conversion digital clipping Limits the digital value with the upper and lower limit values of the digital clipping. 1.00A
M+L60AD2DA2_AD_SetLoggingPARAM Logging function parameter setting Sets the logging function of the specified A/D conversion channel (CH1 or CH2). 1.00A
M+L60AD2DA2_AD_SaveLogging Logging data save Saves the logging data to a file. 1.00A

D/A conversion

FB name Function name Description Ver.
M+L60AD2DA2_DA_WriteDAVal Write D/A conversion data Writes the D/A conversion data of the specified D/A conversion channel (CH3 or CH4). 1.00A
M+L60AD2DA2_DA_WriteAllDAVal Write D/A conversion data (all CHs) Writes the D/A conversion data of the D/A conversion channels (CH3 and CH4). 1.00A
M+L60AD2DA2_DA_SetDAConversion D/A conversion enable/disable setting Enables or disables the D/A conversion for the D/A conversion specified channel (CH3 or CH4) or all the D/A conversion channels (CH3 and CH4). 1.00A
M+L60AD2DA2_DA_SetDAOutput D/A output enable/disable setting Enables or disables the D/A output of the specified D/A conversion channel (CH3 or CH4) or all the D/A conversion channels (CH3 and CH4). 1.00A
M+L60AD2DA2_DA_SetScaling D/A conversion scaling setting Sets the scaling of the specified D/A conversion channel (CH3 or CH4). 1.00A
M+L60AD2DA2_DA_SetAlarm D/A conversion alert output setting Sets the alert output of the specified D/A conversion channel (CH3 or CH4). 1.00A
M+L60AD2DA2_DA_SetOffsetVal D/A conversion offset setting Sets the offset of the specified D/A conversion channel (CH3 or CH4). 1.00A
M+L60AD2DA2_DA_SetGainVal D/A conversion gain setting Sets the gain of the specified D/A conversion channel (CH3 or CH4). 1.00A
M+L60AD2DA2_DA_ShiftOperation D/A conversion shift operation Adds the input value shift amount to the digital value. 1.00A
M+L60AD2DA2_DA_WaveDataStoreCsv Read wave data (CSV file) Reads data from the CSV file where parameters and wave data (wave data and wave data points) of the wave output function are stored, then writes them to the buffer memory of the L60AD2DA2. 1.00A
M+L60AD2DA2_DA_WaveDataStoreDev Read wave data (device) Reads data from the file register (ZR) where parameters and wave data (wave data and wave data points) of the wave output function are stored, then writes them to the buffer memory of the L60AD2DA2. 1.00A
M+L60AD2DA2_DA_WaveOutputSetting Wave output setting Sets the wave output of the specified D/A conversion channel (CH3 or CH4) or all the D/A conversion channels (CH3 and CH4). 1.00A
M+L60AD2DA2_DA_WaveOutReqSetting Wave output start/stop request Sets the starting, stopping, or pausing of the wave output of the specified D/A conversion channel (CH3 or CH4) or all the D/A conversion channels (CH3 and CH4). 1.00A

Common

FB name Function name Description Ver.
M+L60AD2DA2_ReadADVal_WriteDAVal Read A/D conversion data and write D/A conversion data Reads the A/D conversion data of the A/D conversion channels (CH1 and CH2) and writes the D/A conversion data of the D/A conversion channels (CH3 and CH4). 1.00A
M+L60AD2DA2_RequestSetting Operating condition setting request Validates each setting. 1.00A
M+L60AD2DA2_ErrorOperation Error operation Monitors error codes and resets errors. 1.00A
M+L60AD2DA2_OGBackup Offset/gain value save Reads the offset/gain setting value of the user range setting and stores it to a file 1.00A
M+L60AD2DA2_OGRestore Offset/gain value restore Restores the offset/gain setting values of the user range setting that are saved in a file to the module. 1.00A


[Improvement history of the FB for the MELSEC-L analog input/output module from Ver.1.00A to Ver.1.10L (Apr., 2015)]

No. Description
1 The following FB libraries have been added.
・M+L60AD2DA2_FreeCalDataStoreDev
・M+L60AD2DA2_FreeConvDataStoreCsv
・M+L60AD2DA2_FreeConvDataStoreDev
2 The applicable version of GX Works2 has been added.
・This FB can be installed to GX Works2 of any language version.


[Precautions for using the file]

Install the FB library to the personal computer in which GX Works2 of the following version has been installed.

  1. GX Works2 (English): Version 1.24A or later
  2. GX Works2 (Chinese (simplified)): Version 1.49B or later


[How to extract the compressed file]

Copy the file to a folder.
After the copied file is decompressed, the fb-l60ad2da2_v110l_e folder is created.

Decompression method 1): For the OS with the ZIP-compatible decompression function

  1. Right-click the copied file.
  2. Select "Extract All...".
    When "Extract All..." is not displayed, follow the decompression method 2).
  3. Specify the location of the extracted file, and click the "Extract" button to start the decompression.

Decompression method 2): For the OS without the ZIP-compatible decompression function

  1. If not having the ZIP-compatible decompression tool, acquire the decompressing tool.
  2. Decompress the file using the decompression tool.

* Use the decompression tool at users' own risk.


[Installation method]

  1. Execute setup.exe in the fb-l60ad2da2_v110l_e folder.
  2. Install the FB library following the messages of the installer.


[How to use MELSOFT Library]

  1. Select [Library] - [Install...] from the [Project] menu.
  2. In the [Import Library to Project] dialog box, select the installed library and necessary FBs, and click the [OK] button.
  3. Paste the FB from the [Element Selection] window to the program.


[Precautions for using MELSOFT Library]

  1. Before applying the FB library of MELSOFT Library to a system, check sufficiently if no problem occurs in the control of the system.