Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 40

Process control function blocks
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Specifying tag data of a user-defined tag FB
The following describes how to specify tag data of a user-defined tag FB to be used in a program.
■When specifying the tag data from an FBD/LD program for process control
To use tag data of a user-defined tag FB in an FBD/LD program for process control, specify the tag data as "Tag name.Tag
data name".
Ex.
When using the manipulated value (MV) of the tag data (TIC002)
(1) Specify "TIC002.MV" using the tag name and tag data name.
■When specifying the tag data from a user-defined tag FB
To use tag data of a user-defined tag FB in the user-defined tag FB, specify the tag data as "Structure label for tag data
reference.Tag data name".
Ex.
When using the manipulated value (MV) of the tag data in the user-defined tag FB "U_PID_T" (tag type: PID)
(2) Specify "_PID.MV" using the structure label for tag data reference and tag data name.
For the structure labels for tag data reference, refer to the following.
Page 23 Tag type list
Precautions
• Create a user-defined tag FB specifying the FB type to subroutine type.
• Do not use the EI instruction (enabling interrupt programs) in a user-defined tag FB or a function/function block called by
the user-defined tag FB.
• Use a structure label for tag data reference in a user-defined tag FB only.
2 PROCEDURE BEFORE USING PROCESS CONTROL FUNCTION BLOCK
38
2.4 Editing an FBD/LD Program for Process Control
(1)
(2)

Advertisement

Table of Contents
loading

Table of Contents