Function Call - GE PACSystems RX7i Cpu Programmer's Reference Manual

Hide thumbs Also See for PACSystems RX7i:
Table of Contents

Advertisement

Chapter 8. Structured Text (ST) Programming
8.2.2

Function Call

The structured text function call executes a predefined algorithm that performs a mathematical, bit
string or other operation. The function call consists of the name of the function or block followed by
required input or output parameters.
The structured text logic can call blocks or the PACSystems built-in functions listed in the table
below. The call must be made in a single statement and cannot be part of a nested expression.
Calls to some functions, such as communications request (COMMREQ), require a command block or
parameter block. For these functions, an array is declared, initialized in logic, and then passed as a
parameter to the function.
Built-in Functions Supported for ST Calls
Note: Only the functions listed in the following table are supported in the current PACSystems
version. Other built-in functions are not supported.
Example: cos(IN := inReal, Q => outReal, ENO => outBool);
Category
Functions
Advanced Math
ASIN, ATAN, ACOS, COS, SIN, TAN
LOG, LN, EXP, EXPT,
SQRT_INT, SQRT_DINT, SQRT_REAL
Math
ABS_INT, ABS_DINT, ABS_REAL
SCALE_DINT, SCALE_INT, SCALE_UINT
Communication
PNIO_DEV_COMM
Control
DO_IO, MASK_IO_INTR, SCAN_SET_IO, SUS_IO,
SUS_IO_INTR, SVC_REQ, SWITCH_POS, F_TRIG, R_TRIG
Data
BCD4_TO_INT, BCD4_TO_UINT, BCD4_TO_REAL
Conversion
BCD8_TO_DINT, BCD8_TO_REAL
DINT_TO_BCD8, DINT_TO_DWORD, DINT_TO_INT,
DINT_TO_UINT, DINT_TO_REAL, DINT_TO_LREAL
DWORD_TO_DINT
INT_TO_BCD4, INT_TO_DINT, INT_TO_UINT,
INT_TO_REAL, INT_TO_WORD
UINT_TO_BCD4, UINT_TO_BCD8, UINT_TO_INT,
UINT_TO_DINT, UINT_TO_REAL, UINT_TO_WORD
REAL_TO_INT, REAL_TO_UINT, REAL_TO_DINT,
REAL_TO_LREAL
LREAL_TO_DINT, LREAL_TO_REAL
TRUNC_INT, TRUNC_DINT
DEG_TO_RAD, RAD_TO_DEG
WORD_TO_INT, WORD_TO_UINT
Data Move
ARRAY_SIZE, ARRAY_SIZE_DIM1, ARRAY_SIZE_DIM2,
COMMREQ, MOVE_DATA_EX, SIZE_OF
PACMotion
The RX3i CPUs support 56 PLCopen compliant motion
functions and function blocks.
370
PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual
More information
Chapter 4
Chapter 4
PACSystems RX3i & RSTi-EP
PROFINET I/O Controller
Manual, GFK-2571
Chapter 4
Chapter 4
Chapter 4
PACMotion Multi-Axis Motion
Controller User's Manual,
GFK-2448
GFK-2950C

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pacsystems rx3iPacsystems rsti-ep

Table of Contents