chapter 9 analog function block libraries · set '1' for respective element value for...

31
Chapter 9 Analog function block libraries

Upload: others

Post on 12-Oct-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

Chapter 9 Analog functionblock libraries

Page 2: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':
Page 3: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

9. Analog function block libraries

9-1

9. Analog function block libraries�������������������� ������� ��� ��������������

Note 1), Note 2) and Note 3) are described as below.

Content Description

Note 1) The element number of array is same to channel(loop) number.

Note 2)If the function block execution request (REQ) is on, the output variable valuechanges to new value of every scan and if the function block execution request(REQ) is off, it holds previous value.

Note 3)1) The element number of array is same to channel(loop) number.

2) If the function block execution request (REQ) is on, the output variable valuechanges to new value of every scan and if REQ is off, it holds previous value.

Note

Page 4: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

9. Analog function block libraries AD2ARD

9-2

AD2ARDProduct GM1 GM2 GM3 GM4 GM5Read G4F-AD2A conversion value(ARRAY type)

Applicable �

Function block Description

[ ] : Indicate ARRAY variable and number inthe parenthesis is the element number.

Input REQ : Function block execution request

BASE : G4F-AD2A module installation base locationnumber

SLOT : Slot location number of G4F-AD2A moduleinstallation base

Note 1) CH : Assign the channel to read A/D conversiondata.Assign the respective element value to '1' for channel.

Output DONE : On if the function block is executed withouterror and Off if the error occurs or REQ isnot generated.

Note 2) STAT : Error status during the function blockexecution.

Note 3) ACT : Channel display that read the conversionvalue after completing the function block.The element value of the channel will be '1'.

Note 3) DATA : A/D conversion data.Data range is 0~16000 or -8000~ +8000according to the module initialization assign.

���� Function�������������������� ��������� ��� ��� ����������� �!"������������������������ ������� �#���#� ����

������$���� ������ ������ ��������$���� ������ �����������#��#� ��%

���� Program example

LD IL

� �

Page 5: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

AD2ARD 9. Analog function block library

9-3

AD2ARDProduct GM1 GM2 GM3 GM4 GM5Read G5F-AD2A conversion value(ARRAY type)

Applicable �

Function block Description

[ ] : Indicate ARRAY variable and number inthe parenthesis is the element number.

Input REQ : Function block execution request

MODL : Location number of G5F-AD2A moduleNote 1) CH : Assign the channel to read A/D conversion

data.Assign the respective element value to '1' forchannel.

Output DONE : On if the function block is executed withouterror and Off if the error occurs or REQ isnot generated.

Note 2) STAT : Error status during the function blockexecution.

Note 3) ACT : Channel display that read the conversionvalue after completing the function block.The element value of the channel will be '1'.

Note 4) DATA : A/D conversion data.Data range is 0~16000 or -8000~+8000according to the module initialization assign.

���� Function����&��������������� ��������� ��� ��� ����������� �!"��������&��������������� ������� �#���#� ����

������$���� ������ ������ ��������$���� ������ �����������#��#� ��%

���� Program example

LD IL

Page 6: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

9. Analog function block library AD2INI

9-4

AD2INIProduct GM1 GM2 GM3 GM4 GM5���������'������� ���������

Applicable �

Function block Description

[ ] : Indicate ARRAY variable and number inthe parenthesis is the element number.

Input REQ : Function block execution request at rising edgeBASE : G4F-AD2A module installation base location

umberSLOT : Slot location number of G4F-AD2A module

installation baseNote 1) CH : Assign the channel to be used.

Assign the respective element value to '1’ for eachchannel.

Note 1) DATATYPE: Assign the range of conversion data for eachchannel. ('0': 0 ~ 16000, '1': -8000 ~ +8000)

Note 1) FILT_EN : Define the use of digital filter.('0': Not used. '1': Used)

Note 1) FILT_VAL : Set the filter constant during using the digital filter.Setting range: 1 ~ 99

Note 1) AVG_EN : Define the use of average process.('0': Not used. '1': Used)

Note 1) AVG_SEL : Define the process method during using theaverage process. ('0': Number average process.'1': Time verage process)

NUM/TIME : Set the number(Times) or time(mS) according tothe process method assigned at AVG_SEL.(Average number range: 2~4000 times)(Average time range: 40~20000 mS)

Output DONE : On if the function block is executed without errorand Off if the error occurs or REQ is notgenerated.

STAT : Error status during the function block execution.Note 1) ACT : Channel display that initialized after completing

the function block. The element value of theinitialized channel will be '1'.

���� Function(��#��������������������#��#� ���� ������ ���#�������� ������������������������%

���� Program example

LD IL

Page 7: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

AD2INI 9. Analog function block library

9-5

AD2INIProduct GM1 GM2 GM3 GM4 GM5G5F-AD2A Module initialization

Applicable �

Function block Description

[ ] : Indicate ARRAY variable and number inthe parenthesis is the element number.

Input REQ : Function block execution request at rising edgeMODL : G5F-AD2A module location number

Note 1) CH : Assign the channel to be used.Assign the respective element value to'1' for eachchannel.

Note 1) DATATYPE: Assign the range of conversion data for eachchannel.('0': 0 ~ 16000, '1': -8000 ~ +8000)

Note 1) FILT_EN : Define the use of digital filter.('0': Not used. '1': Used)

Note 1) FILT_VAL : Set the filter constant during using the digital filter.(Setting range: 1 ~ 99)

Note 1) AVG_EN : Define the use of average process.('0': Not used. '1': Used)

Note 1) AVG_SEL : Define the process method during using theaverage process.('0': Number average process. '1': Time averageprocess)

NUM/TIME : Set the number(Times) or time(mS) according tothe process method assigned at AVG_SEL.(Average number range:2~4000 times)(Average time range: 40~20000 mS)

Output DONE : On if the function block is executed without errorand Off if the error occurs or REQ is notgenerated.

STAT : Error status during the function block execution.Note 1) ACT : Channel display that initialized after completing

the function block. The element value of theinitialized channel will be '1'.

���� Function(��#��������������������#��#� ���� ������ ���#�������� ����������&�������������%

���� Program example

LD IL

Page 8: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

9. Analog function block library AD2RD

9-6

AD2RDProduct GM1 GM2 GM3 GM4 GM5Read G4F-AD2A conversion value(Single type)

Applicable �

Function block Description

Input REQ : Function block execution request

BASE : G4F-AD2A module installation base locationnumber

SLOT : Slot location number of G4F-AD2A moduleinstallation base

CH : Assign the channel to read A/D conversiondata.(Preset range: 0 ~ 3)

Output DONE : On if the function block is executed withouterror and Off if the error occurs or REQ isnot generated.

Note 2) STAT : Error status during the function blockexecution.

Note 2) DATA : A/D conversion data.Data range is 0~16000 or -8000~+8000according to the module initialization assign.

���� Function�������������������� ��������� ��� ��� ����������� �!"������������������������ ������� �#���#� ����

������$���� ������ ������ ��������$���� ������ �����������#��#� ��%

���� Program example

LD IL

� �

Page 9: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

AD2RD 9. Analog function block library

9-7

AD2RDProduct GM1 GM2 GM3 GM4 GM5Read G5F-AD2A conversion value(Single type)

Applicable �

Function block Description

Input REQ : Function block execution request

MODL : G5F-AD2A module location number

CH : Assign the channel to read A/D conversiondata.(Preset range: 0 ~ 3)

Output DONE : On if the function block is executed withouterror and Off if the error occurs or REQ is notgenerated.

Note 2) STAT : Error status during the function blockexecution.

Note 2) DATA : A/D conversion data.Data range is 0~16000 or -8000~+8000according to the module initialization assign.

���� Function����&��������������� ��������� ��� ��� ����������� �!"��������&��������������� ������� �#���#� ����

������$���� ������ ������ ��������$���� ������ �����������#��#� ��%

���� Program example

LD IL

� �

Page 10: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

9. Analog function block library AD4ARD

9-8

AD4ARDProduct GM1 GM2 GM3 GM4 GM5Read G3F-AD4A conversion value(Array type)

Applicable � � �

Function block Description

[ ] : Indicate ARRAY variable and number inthe parenthesis is the element number.

Input REQ : Function block execution request

BASE : G3F-AD4A module installation base locationnumber

SLOT : Slot location number of G3F-AD4A moduleinstallation base

Note 1) CH : Assign the channel to read A/D conversiondata.Assign the respective element value to '1' forchannel.

Output DONE : On if the function block is executed withouterror and Off if the error occurs or REQ isnot generated.

Note 2) STAT : Error status during the function blockexecution.

Note 3) ACT : Channel display that read the conversionvalue after completing the function block.The element value of the channel will be '1'.

Note 3) DATA : A/D conversion data.Data range is 0~16000 or -8000~+8000according to the module initialization assign.

���� Function����)��������������� ��������� ��� ��� ����������� �!"��������)��������������� ������� �#���#� ����

������$���� ������ ������ ��������$���� ������ �����������#��#� ��%

���� Program example

LD IL

Page 11: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

AD4INI 9. Analog function block library

9-9

AD4INIProduct GM1 GM2 GM3 GM4 GM5G3F-AD4A Module initialization

Applicable � � �

Function block Description

[ ] : Indicate ARRAY variable and number in theparenthesis is the element number.

(Note)* : Element number of array and the channelconfiguration is as below.Element Number [0]:

Channel 0,1,2,3 batch assignmentElement Number [1]:

Channel 4,5,6,7 batch assignmentElement Number [2]:

Channel 8,9,10,11 batch assignmentElement Number [3]:

Channel 12,13,14,15 batch assignment

Input REQ : Function block execution request at rising edgeBASE : G3F-AD4A module installation base location

numberSLOT : Slot location number of G3F-AD4A module

installation baseNote 1) CH : Assign the channel to be used.

Assign the respective element value to '1' forchannel.

Note 1) DATATYPE: Assign the range of conversion data for eachchannel. ('0': 0 ~ 16000, '1': -8000 ~ +8000)

FILT_EN : Define the use of digital filter.('0': Not used. '1': Used)

FILT_VAL : Set the filter constant during using the digital filter.(Setting range: 1 ~ 99)Refer to (Note) for element number of array andchannel number configuration.

AVG_EN : Define the use of average process. ('0': Not used.'1': Used)Refer to (Note) for element number of array andchannel number configuration.

AVG_SEL : Define the process method during using theaverage process. ('0': Number average process.'1': Time average process)Refer to (Note) for element number of array andchannel number configuration.

NUM/TIME : Set the number(Times) or time(mS) according tothe process method assigned at AVG_SEL.(Average number range: 2~4000 times)(Average time range: 96~12000 mS)

Output DONE : On if the function block is executed without errorand Off if the error occurs or REQ is notgenerated.

STAT : Error status during the function block execution.Note 1) ACT : Channel display that read the conversion value

after completing the function block. The elementvalue of the channel will be '1'.

���� Function(��#��������������������#��#� ���� ������ ���#�������� ����������)�������������%

���� Program example

LD IL

Page 12: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

9. Analog function block library AD4RD

9-10

AD4RDProduct GM1 GM2 GM3 GM4 GM5Read G3F-AD4A conversion value(Single type)

Applicable � � �

Function block Description

Input REQ : Function block execution request

BASE : G3F-AD4A module installation base locationnumber

SLOT : Slot location number of G3F-AD4A moduleinstallation base

CH : Assign the channel to read A/D conversiondata.(Preset range: 0 ~ 15)

Output DONE : On if the function block is executed withouterror and Off if the error occurs or REQ isnot generated.

Note 2) STAT : Error status during the function blockexecution.

Note 2) DATA : A/D conversion data.Data range is 0~16000 or -8000~+8000according to the module initialization assign.

���� Function����)��������������� ��������� ��� ��� ����������� �!"��������)��������������� ������� �#���#� ����

������$���� ������ ������ ��������$���� ������ �����������#��#� ��%

���� Program example

LD IL

� �

Page 13: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

ADR2INI 9. Analog function block library

9-11

ADR2INIProduct GM1 GM2 GM3 GM4 GM5G4F-AD2A Module initialization(Remote type)

Applicable �

Function block Description

[ ] : Indicate ARRAY variable and number inthe parenthesis is the element number.

Input REQ : Function block execution request at rising edgeNET_NO : Slot location number(0~7) installed the

communication module of local station(G4L-FUEA,G4L-FUOA) to send the function block

ST_NO : Prefix number(0~63) of communicationmodule(G4L-RBEA, G4L-RBOA) installed atremote I/O station

BASE : G4F-AD2A module installation base locationnumber

SLOT : Slot location number of G4F-AD2A moduleinstallation base

Note 1) CH : Assign the channel to be used.Set '1' for respective element value for channelsetting.

Note 1) DATATYPE: Assign the range of conversion data for eachchannel. ('0': 0 ~ 16000, '1': -8000 ~ +8000)

Note 1) FILT_EN : Define the use of digital filter.('0': Not used. '1': Used)

Note 1) FILT_VAL : Set the filter constant during using the digital filter.Setting range: 1 ~ 99

Note 1) AVG_EN : Define the use of average process.('0': Not used. '1': Used)

Note 1) AVG_SEL : Define the process method during using theaverage process. ('0': Number average process.'1': Time average process)

NUM/TIME : Set the number(Times) or time(mS) according tothe process method assigned at AVG_SEL.(Average number range: 2~4000 times)(Average time range: 40~20000 mS)

Output NDR : On if the function block is executed without errorand Off at next SCAN

ERR : On when the error occurs during executing thefunction block.

STAT : Error status display during the function blockexecution.

Note 1) ACT : Channel display that read the conversion valueafter completing the function block. The elementvalue of the channel will be '1'.

���� Function����� � #�� ����� ������ ���� ���#� �#� ��� � �� ���� ��� #�� ������ � �� ������ ��������� ������� � ������� �

*����%The execution request response speed of remote function block(ADR2INI) relates to the remote (communicationmodule) station number(Refer to remote manual). When NDR output of remote function block(ADR2INI) is on, theinput preset value is sent to G4F-AD2A module.

���� Program example

LD IL

Note

Page 14: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

9. Analog function block library ADR2RD

9-12

ADR2RDProduct GM1 GM2 GM3 GM4 GM5Read G4F-AD2A conversion value(Remote type)

Applicable �

Function block Description

[ ] : Indicate ARRAY variable and number inthe parenthesis is the element number.

Input REQ : Function block execution request at rising edge

NET_NO : Slot location number(0~7) installed thecommunication module of local station(G4L-FUEA,G4L-FUOA) to send the function block

ST_NO : Prefix number(0~63) of communicationmodule(G4L-RBEA, G4L-RBOA) installed atremote I/O station

BASE : G4F-AD2A module installation base locationnumber

SLOT : Slot location number of G4F-AD2A moduleinstallation base

Note 1) CH : Assign the channel to be used.Set '1' for respective element value for channelsetting.

Output NDR : On if the function block is executed without errorand Off at next SCAN

ERR : On when the error occurs during executing thefunction block.

STAT : Error status display during the function blockexecution.

Note1) ACT : Channel display that read the conversion valueafter completing the function block. The elementvalue of the channel will be '1'.

Note1) DATA : A/D conversion data.

Data range is 0~16000 or -8000~+8000 accordingto the module initialization assign.

���� Function*�����$���� ������ ������������������������� ��������������%

The execution request response speed of remote function block(ADR2RD) relates to the remote (communicationmodule) station number(Refer to remote manual). NDR output contact of remote module initialization functionblock(ADR2INI) shall be used as REQ input condition when remote function block(ADR2RD) is used.Output contents(ERR, STAT...) of remote function block(ADR2RD) is changed to new value when NDR outputcontact(ADR2RD) is on.

���� Program example

LD IL

Note

Page 15: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

ADR4INI 9. Analog function block library

9-13

ADR4INIProduct GM1 GM2 GM3 GM4 GM5G3F-AD4A Module initialization(Remote type)

Applicable � � �

Function block Description

[ ] : Indicate ARRAY variable and number in theparenthesis is the element number.

(Note)* : Element number of array and the channelconfiguration is as below.Element Number [0]:

Channel 0,1,2,3 batch assignmentElement Number [1]:

Channel 4,5,6,7 batch assignmentElement Number [2]:

Channel 8,9,10,11 batch assignmentElement Number [3]:

Channel 12,13,14,15 batch assignment

Input REQ : Function block execution request at rising edgeNET_NO : Slot location number(0~7) installed the communicat-

ion module of local station(G3L-FUEA, G3L-FUOA)to send the function block

ST_NO : Prefix number(0~63) of communication module(G3L-RBEA, G3L-RBOA) installed at remote I/O station

BASE : G3F-AD4A module installation base location numberSLOT : Slot location number of G3F-AD4A module

installation baseNote 1) CH : Assign the channel to be used.

Set '1' for respective element value for channelsetting.

Note 1) DATATYPE : Assign the range of conversion data for eachchannel. ('0': 0 ~ 16000, '1': -8000 ~ +8000)

FILT_EN : Define the use of digital filter. ('0': Not used. '1':Used)Refer to (Note) for element number of array andchannel number configuration.

FILT_VAL : Set the filter constant during using the digital filter.(Setting range: 1 ~ 99)Refer to (Note) for element number of array andchannel number configuration.

AVG_EN : Define the use of average process. ('0': Not used. '1':Used)Refer to (Note) for element number of array andchannel number configuration.

AVG_SEL : Define the process method during using the averageprocess. ('0': Number average process. '1': TimeRefer to (Note) for element number of array andchannel number configuration.

NUM/TIME:Set the number(Times) or time(mS) according to theprocess method assigned at AVG_SEL.(Average number range: 2~4000 times)(Average time range: 96~12000 mS)

Output NDR : On if the function block is executed without error andOff at next SCAN

ERR : On when the error occurs during executing thefunction block.

STAT : Error status display during the function blockexecution.

Note 1) ACT : Channel display that read the conversion value aftercompleting the function block. The element value ofthe channel will be '1'.

���� Function����� � #�� ����� ������ ���� ���#� �#� ��� � �� ���� ��� #�� ������ � �� ������ �)������� ������� � ������� �

*����%The execution request response speed of remote function block(ADR4INI) relates to the remote(communicationmodule) station number.(Refer to remote manual) When NDR output of remote function block(ADR4INI) is on, theinput preset value is input to G3F-AD4A module.

���� Program example

LD IL

Note

Page 16: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

9. Analog function block library ADR4RD

9-14

ADR4RDProduct GM1 GM2 GM3 GM4 GM5Read G3F-AD4A conversion value(Remote type)

Applicable � � �

Function block Description

[ ] : Indicate ARRAY variable and number inthe parenthesis is the element number.

Input REQ : Function block execution request at rising edgeNET_NO : Slot location number(0~7) installed the

communication module of local station(G3L-FUEA,G3L-FUOA) to send the function block

SET_NO : Prefix number(0~63) of communication module(G3L - RBEA, G3L-RBOA) installed at remote I/Ostation

BASE : G3F-AD4A module installation base locationnumber

SLOT : Slot location number of G3F-AD4A moduleinstallation base

Note 1) CH : Assign the channel to be used.Set'1' for respective element value for channelsetting.

Output NDR : On if the function block is executed without errorand Off at next SCAN

ERR : On when the error occurs during executing thefunction block.

STAT : Error status display during the function blockexecution.

Note 1) ACT : Channel display that read the conversion valueafter completing the function block. The elementvalue of the channel will be '1'.

Note 1) DATA : A/D conversion data.Data range is 0~16000 or -8000~+8000 accordingto the module initialization assign.

���� Function*�����$���� ������ ���������)��������������� ��������������%

The execution request response speed of remote function block(ADR4RD) relates to the remote(communicationmodule) station number(Refer to remote manual). NDR output contact of remote module initialization functionblock(ADR4INI) shall be used as REQ input condition when remote function block(ADR4RD) is used.Output contents(ERR, STAT...) of remote function block(ADR4RD) is changed to new value when NDR outputcontact(ADR4RD) is on.

���� Program example

LD IL

Note

Page 17: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

AT3TON 9. Analog function block library

9-15

AT3TONProduct GM1 GM2 GM3 GM4 GM5G4F-AT3A Timer driving

Applicable �

Function block Description

Input IN : Timer driving contactBASE : G4F-AT3A module installation base location

numberSLOT : Slot location number of G4F-AT3A module

installation baseTMR : Timer number to be drived(0~7)

Output Q : Operation contact of the timer (ON delayoperation)

STAT : Error status display during the function blockexecution.

���� Function���������#������� ��������������+)��������%

���� Program example

LD IL

Page 18: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

9. Analog function block library AT4TON

9-16

AT4TONProduct GM1 GM2 GM3 GM4 GM5G3F-AT4A Module Timer driving

Applicable � � �

Function block Description

Input IN : Timer driving contact BASE : G3F-AT4A module installation base location

numberSLOT : Slot location number of G3F-AT4A module

installation baseTMR : Timer number to be drived(0~15)

Output Q : Operation contact of the timer(ON delayoperation)

STAT : Error status display during the function block execution.

���� Function���������#������� ����������)���+���������%

���� Program example

LD IL

Page 19: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

DA1AWR 9. Analog function block library

9-17

DA1AWRProduct GM1 GM2 GM3 GM4 GM5G4F-DA1A Input Data write(Array type)

Applicable �

Function block Description

[ ] : Indicate ARRAY variable and number inthe parenthesis is the element number.

Input REQ : Function block execution requestBASE : G4F-DA1A module installation base location

numberSLOT : Slot location number of G4F-DA1A module

installation baseNote1) CH : Assign the channel to write input data.

Assign '1' of respective element value forchannel assignment.

Note 1) DATA : Input data of each channelInput range is 0~16000 or -8000~+8000according to the module initialization assign.

Output DONE : On if the function block is executed withouterror and Off if the error occurs or REQ isnot generated.

Note2) STAT : Error status during the function blockexecution.

Note3) ACT : Channel display that write the data aftercompleting the function block. The elementvalue of the channel will be '1'.

���� Function���������,���������� ��������� ��� ��� ���������,� �!"�������������,���������� ������� �#���#� ����

-�����$���� ������ ������ ��-�����$���� ������ �����������#��#� ��%

���� Program example

LD IL

Page 20: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

9. Analog function block library DA1AWR

9-18

DA1AWRProduct GM1 GM2 GM3 GM4 GM5G5F-DA1A Input Data write(Array type)

Applicable �

Function block Description

[ ] : Indicate ARRAY variable and number inthe parenthesis is the element number.

Input REQ : Function block execution request

MODL : G5F-DA1A module location numberNote 1) CH : Assign the channel to write input data.

Assign '1' of respective element value forchannel assignment.

Note 1) DATA : Input data of each channelInput range is 0~16000 or -8000~+8000according to the module initialization assign.

Output DONE : On if the function block is executed withouterror and Off if the error occurs or REQ isnot generated.

Note 2) STAT : Error status during the function blockexecution.

Note 3) ACT : Channel display that write the data aftercompleting the function block. The elementvalue of the channel will be '1'.

���� Function����&����,���������� ��������� ��� ��� ���������,� �!"��������&����,���������� ������� �#���#� ����

-�����$���� ������ ������ ��-�����$���� ������ �����������#��#� ��%

���� Program example

LD IL

Page 21: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

DA1INI 9. Analog function block library

9-19

DA1INIProduct GM1 GM2 GM3 GM4 GM5G4F-DA1A module initialization

Applicable �

Function block Description

[ ] : Indicate ARRAY variable and number inthe parenthesis is the element number.

Input REQ : Function block execution request at rising edgeBASE : G4F-DA1A module installation base location

numberSLOT : Slot location number of G4F-DA1A module

installation baseNote 1) CH : Assign the channel to write input data.

Assign '1' of respective element value for channelassignment.

Note 1) DATATYPE:Assign input data range of each channel ('0':0~16000, '1': -8000 ~ +8000)

Note 1) SEL : Select the output value when the channel is notused or GM4-CPUA is stop.('00': Intermediate value output of output range)('01': Previous value output)('02': Max. value output of output range)('03': Min. value output of output range)

Output DONE : On if the function block is executed without errorand Off if the error occurs or REQ is notgenerated.

STAT : Error status display during the function blockexecution.

Note 1) ACT : Channel display that initialized after completingthe function block. The element value of thechannel will be '1'.

���� Function���� ��� #�� ������ � ��� ����� � �� ���#� �#� ��� � �� #�� ����� ��������+�+./0"� (01!� ���� ���#� �#� ��� �

������������,��������%

���� Program example

LD IL

Page 22: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

9. Analog function block library DA1INI

9-20

DA1INIProduct GM1 GM2 GM3 GM4 GM5G5F-DA1A module initialization

Applicable �

Function block Description

[ ] : Indicate ARRAY variable and number inthe parenthesis is the element number.

Input REQ : Function block execution request at rising edgeMODL : G5F-DA1A module location number

Note 1) CH : Assign the channel to write input data.Assign '1' of respective element value for channelassignment.

Note 1) DATATYPE : Assign input data range of each channel('0': 0~16000, '1': -8000 ~ +8000)

Note 1) SEL : Select the output value when the channel is not used or GM5-CPUA is stop.

('00': Intermediate value output of output range)('01': Previous value output)('02': Max. value output of output range)('03': Min. value output of output range)

Output DONE : On if the function block is executed without error andholds on till next function block execution isrequested. However, Off if the error occurs duringexecuting the function block.

STAT : Error status display during the function blockexecution.

Note 3) ACT : Channel display that initialized after completing thefunction block. The element value of the channel willbe '1'.

���� Function���� ��� #�� ������ � ��� ����� � �� ���#� �#� ��� � �� #�� ����� ��������+�+./0"� (01!� ���� ���#� �#� ��� �

�������&����,��������%

���� Program example

LD IL

Page 23: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

DA1WR 9. Analog function block library

9-21

DA1WRProduct GM1 GM2 GM3 GM4 GM5G4F-DA1A Input Data write(Single type)

Applicable �

Function block Description

Input REQ : Function block execution request

BASE : G4F-DA1A module installation base locationnumber

SLOT : Slot location number of G4F-DA1A moduleinstallation base

CH : Assign the channel to write input data.

DATA : Input data of respective channelInput range is 0~16000 or -8000~+8000according to the module initialization assign.

Output DONE : On if the function block is executed withouterror and Off if the error occurs or REQ isnot generated.

Note 2) STAT : Error status during the function blockexecution.

���� Function���������,���������� ��������� ��� ��� ���������,� �!"�������������,���������� ������� �#���#� ����

-�����$���� ������ ������ ��-�����$���� ������ ������������������#� ��%

���� Program example

LD IL

Page 24: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

9. Analog function block library DA1WR

9-22

DA1WRProduct GM1 GM2 GM3 GM4 GM5G5F-DA1A Input Data write(Single type)

Applicable �

Function block Description

Input REQ : Function block execution request

MODL : G5F-DA1A module location number

CH : Assign the channel number to write inputdata.

DATA : Input data of respective channelInput range is 0~16000 or -8000~+8000according the module initialization assign.

Output DONE : On if the function block is executed withouterror and Off if the error occurs or REQ isnot generated

Note 2) STAT : Error status during the function blockexecution.

���� Function����&����,���������� ��������� ��� ��� ���������,� �!"��������&����,���������� ������� �#���#� ����

-�����$���� ������ ������ ��-�����$���� ������ ������������������#� ��%

���� Program example

LD IL

Page 25: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

DA4AWR 9. Analog function block library

9-23

DA4AWRProduct GM1 GM2 GM3 GM4 GM5G3F-DA4V, G3F-DA4I module input data write(Array type)

Applicable � � �

Function block Description

[ ] : Indicate ARRAY variable and number inthe parenthesis is the element number.

Input REQ : Function block execution request

BASE : G3F-DA4V or G3F-DA4I module installation baselocation number

SLOT : Slot location number of G3F-DA4V or G3F-DA4Imodule installation base

Note 1) CH : Assign the channel to write input data.Assign '1' of respective element value for channelassignment.

Note 1) DATA : Input data of each channel.Input range is 0~16000 or –8000~8000 according tothe module initialization assign.

Output DONE : On if the function block is executed without error andholds on till next function block execution isrequested. However, Off if the error occurs duringexecuting the function block.

Note2) STAT : Error status display during the function blockexecution.

Note 3) ACT : Channel display that write the data after completingthe function block. The element value of the channelwill be '1'.

���� Function��� �)�����2� ��� �)������� ������� � ��������� � �� ��� � ���������� �!"� ������ �)�����2� ��� �)������

�������� ������� �#���#� �����-�����$���� ������ ������ ��-�����$���� ������ �����������#��#� ��%

���� Program example

LD IL

Page 26: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

9. Analog function block library DA4INI

9-24

DA4INIProduct GM1 GM2 GM3 GM4 GM5G3F-DA4V, G3F-DA4I module initialization

Applicable � � �

Function block Description

[ ] : Indicate ARRAY variable and number inthe parenthesis is the element number.

Input REQ : Function block execution request at rising edge

BASE : G3F-DA4V or G3F-DA4I module installation baselocation number

SLOT : Slot location number of G3F-DA4V or G3F-DA4Imodule installation base

Note 1) CH : Assign the channel to be usedAssign '1' of respective element value for channelassignment.

Note 1) DATATYPE: Assign input data range of each channel('0': 0~16000, '1': -8000 ~ +8000)

Note 1) SEL : Select the output value when the channel is notused or G3F-CPUA is at stop status.('00': Intermediate value output of output range)('01': Previous value output)('02': Max. value output of output range)('03': Min. value output of output range)

Output DONE : On if the function block is executed without error andholds on till next function block execution isrequested. However, Off if the error occurs duringexecuting the function block.

STAT : Error status display during the function blockexecution.

Note 3) ACT : Channel display that write the data after completingthe function block. The element value of the channelwill be '1'.

���� Function����� ����#��#� ����������#��#� ������������)�����2�����)�������������%

���� Program example

LD IL

� �

Page 27: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

DA4WR 9. Analog function block library

9-25

DA4WRProduct GM1 GM2 GM3 GM4 GM5G3F-DA4V, G3F-DA4I Input Data write(Single type)

Applicable � � �

Function block Description

[ ] : Indicate ARRAY variable and number inthe parenthesis is the element number.

nput REQ : Function block execution request

BASE : G3F-DA4V or G3F-DA4I module installationbase location number

SLOT : Slot location number of G3F-DA4V or G3F-DA4I module installation base

CH : Assign the channel number to write input data

DATA : Input data of respective channelInput range is 0~16000 or -8000~+8000according to the module initialization assign.

Output DONE : On if the function block is executed withouterror and Off if the error occurs or REQ is notgenerated.

Note 2) STAT : Error status during the function blockexecution.

���� Function��� �)�����2� ��� �)������� ������� � ��������� � �� ��� � ���������� �!"� ������ �)�����2� ��� �)������

�������� ������� �#���#� �����-�����$���� ������ ������ ��-�����$���� ������ ������������������#� ��%

���� Program example

LD IL

Page 28: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

9. Analog function block library DAR1INI

9-26

DAR1INIProduct GM1 GM2 GM3 GM4 GM5G4F-DA1A module initialization(Remote type)

Applicable �

Function block Description

[ ] : Indicate ARRAY variable and number inthe parenthesis is the element number.

Input REQ : Function block execution request at rising edgeNET_NO : Slot location number(0~7) installed the

communication module of local station(G4L-FUEA, G4L-FUOA) to send the function block

SET_NO : Prefix number(0~63) of communicationmodule(G4L-RBEA, G4L-RBOA) installed atremote I/O station

BASE : G4F-DA1A module installation base locationnumber

SLOT : Slot location number of G4F-DA1A moduleinstallation base

Note 1) CH : Assign the channel to be usedAssign '1' of respective element value for channelassignment.

Note 1) DATATYPE: Assign input data range of each channel('0': 0~16000, '1': -8000 ~ +8000)

Note 1) SEL : Select the output value when the channel is notused or maid body is at stop status.('00': Intermediate value output of output range)('01': Previous value output)('02': Max. value output of output range)('03': Min. value output of output range)

Output NDR : On if the function block is executed without errorand Off at next SCAN

ERR : On when the error occurs during executing thefunction block.

STAT : Error status display during the function blockexecution.

Note 1) ACT : Channel display that initialized after completingthe function block. The element value of thechannel will be '1'.

���� Function����� ����#��#� ���� ���������������+�+./0"�(01!��������#��#� �����������������,���������� ������

��*����%

The execution request response speed of remote function block(DAR1INI) relates to the remote station

number(Refer to remote manual). When NDR output of remote function block(DAR1INI) is on, the inputpreset value is input to G4F-DA1A module.

���� Program example

LD IL

Note

Page 29: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

DAR1WR 9. Analog function block library

9-27

DAR1WRProduct GM1 GM2 GM3 GM4 GM5G4F-DA1A Input Data write(Remote type)

Applicable �

Function block Description

[ ] : Indicate ARRAY variable and number inthe parenthesis is the element number.

Input REQ : Function block execution request at rising edgeNET_NO : Slot location number(0~7) installed the

communication module of local station(G4L-FUEA,G4L-FUOA) to send the function block

ST_NO : Prefix number(0~63) of communicationmodule(G4L-RBEA, G4L-RBOA) installed atremote I/O station

BASE : G4F-DA1A module installation base locationnumber

SLOT : Slot location number of G4F-DA1A moduleinstallation base

Note 1) CH : Assign the channel to write input dataAssign '1' of respective element value for channelassignment.

Note 1) DATA : Input data of each channelInput range is 0 ~ 16000 or -8000 ~ +8000according to module initialization assignment.

Output NDR : On if the function block is executed without errorand Off at SCAN

ERR : On when the error occurs during executing thefunction block.

STAT : Error status display during the function blockexecution.

Note 1) ACT : Channel display that write the data aftercompleting the function block. The element valueof the channel will be '1'.

���� Function���������,���������� ��������� ��� ��� ���������*,� �!�� ��������������"�������������,���������� �

����� �#���#� �����-�����$���� ������ ������ ��-�����$���� ������ ������������������#� ��%

The execution request response speed of remote function block(DAR1WR) relates to the remotestation number(Refer to remote manual). When remote function block(DAR1WR) is used, NDR contact

among DAR1INI output shall be used for REQ input condition. The output contents(ERR, STAT...) ofremote function block(DAR1WR) is changed to new value when NDR contact is on.

���� Program example

LD IL

Note

Page 30: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

9. Analog function block library DAR4INI

9-28

DAR4INIProduct GM1 GM2 GM3 GM4 GM5G3F-DA4V, G3F-DA4I module initialization(Remote type)

Applicable � � �

Function block Description

[ ] : Indicate ARRAY variable and number inthe parenthesis is the element number.

Input REQ : Function block execution request at rising edge

NET_NO : Slot location number(0~7) installed thecommunication module of local station(G3L-FBEA,G3L-FBOA) to send the function block

ST_NO : Prefix number(0~63) of communicationmodule(G3L-RBEA, G4L-RBOA) installed atremote I/O station

BASE : G3F-DA4V or G3F-DA4I module installation baselocation number

SLOT : Slot location number of G3F-DA4V or G3F-DA4Imodule installation base

Note 1) CH : Assign the channel to be usedAssign '1' of respective element value for channelassignment.

Note 1) DATATYPE:Assign input data range of each channel('0': 0~16000, '1': -8000 ~ +8000)

Note 1) SEL : Select the output value when the channel is notused or GM5 main body is at STOP status.('00': Intermediate value output of output range)('01': Previous value output)('02': Max. value output of output range)('03': Min. value output of output range)

Output NDR : On if the function block is executed without errorand Off at next scan.

ERR : On when the error occurs during executing thefunction block.

STAT : Error status display during the function blockexecution.

Note 1) ACT : Display the channel which was initiated aftercompleting the function block. The element valueof the channel will be '1'.

���� Function����� ����#��#� ������������)�����2�����)��������������� ���������*����%

The execution request response speed of remote function block(DAR4INI) relates to the remote stationnumber(Refer to remote manual). When NDR output of remote function block(DAR4INI) is on, input preset value isinput to G3F-DA4V and G3F-DA4I module.

���� Program example

LD IL

� �

Note

Page 31: Chapter 9 Analog function block libraries · Set '1' for respective element value for channel setting. Note 1) DATATYPE: Assign the range of conversion data for each channel. ('0':

DAR4WR 9. Analog function block library

9-29

DAR4WRProduct GM1 GM2 GM3 GM4 GM5G3F-DA4V, G3F-DA4I Input Data write(Remote type)

Applicable � � �

Function block Description

[ ] : Indicate ARRAY variable and number inthe parenthesis is the element number.

Input REQ : Function block execution requestNET_NO : Slot location number(0~7) installed the

communication module of local station(G3L-FUEA,G3L-FUOA) to send the function block

ST_NO : Prefix number(0~63) of communicationmodule(G3L -RBEA, G4L-RBOA) installed atremote I/O station

BASE : G3F-DA4V or G3F-DA4I module installation baselocation number

SLOT : Slot location number of G3F-DA4V or G3F-DA4Imodule installation base

Note 1) CH : Assign the channel to write input dataAssign '1' of respective element value for channelassignment.

Note 1) DATA : Input data of each channelInput range is 0 ~ 16000 or -8000 ~ +8000according to module initialization assignment.

Output NDR : On if the function block is executed without errorand Off at next SCAN

ERR : On when the error occurs during executing thefunction block.

STAT : Error status display during the function blockexecution.

Note 1) ACT : Channel display that write the data aftercompleting the function block. The element valueof the channel will be '1'.

���� Function����)�����2�����)��������������� ��������� ��� ��� �������� ���������*����"��������)�����2�����)��

������������ � �� ����� � #�� �#� ��� ��-�����$�� �� ������ � ���� � ��-�����$�� �� ������ ����� ��� ��������

�#� ��%The execution request response speed of remote function block(DAR4WR) relates to the remote stationnumber(Refer to remote manual). When remote function block(DAR4WR) is used, NDR contact among DAR4INIoutput shall be used for REQ input condition. The output contents(ERR, STAT...) of remote functionblock(DAR4WR) is changed to new value when NDR contact is on.

���� Program example

LD IL

� �

Note