Argument Present - GE PACSystems RX7i Cpu Programmer's Reference Manual

Hide thumbs Also See for PACSystems RX7i:
Table of Contents

Advertisement

Chapter 4. Ladder Diagram (LD) Programming
4.11.1

Argument Present

Operands for ARG_PRES
Parameter Description
IN
Parameter name. Must be a parameter of the function
block that contains the ARG_PRES instruction. Cannot
be an array element or structure element. An alias to
a parameter should resolve only to the parameter
name.
Q
True if the parameter is present, otherwise false.
Example for ARG_PRES
The following sample rung calls the user defined function block, ReadTemp, which has two
parameters, TempVal and Temp1.
The function block ReadTemp contains the following logic, which uses an ARG_PRES function to
determine whether a value for TempVal is present. If TempVal does not have a value, Temp_Pres is
OFF and Idle is ON. If a value exists for TempVal, the ARG_PRES function sets Temp_Pres ON. When
Temp_Pres and Switch are both ON, Start is set ON.
202
PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual
The ARG_PRES function determines whether an input parameter
value was present when the function block instance of the
parameter was invoked. This may be necessary if the parameter is
optional.
This function must be called from a function block instance or a
parameterized block.
The standard output parameter ENO is false only when EN is false.
Allowed Operands
All except flow and constants.
Must be flow in LD. In other
languages all types allowed
except S, SA, SB, SC and
constants.
Optional
No
No
GFK-2950C

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pacsystems rx3iPacsystems rsti-ep

Table of Contents