+ All Categories
Home > Documents > Quick Reference Guide - · PDF fileQuick Reference Guide Order Number: PPX: ... Code I/O...

Quick Reference Guide - · PDF fileQuick Reference Guide Order Number: PPX: ... Code I/O...

Date post: 07-Mar-2018
Category:
Upload: nguyendung
View: 220 times
Download: 2 times
Share this document with a friend
21
SIMATIC APT Quick Reference Guide Order Number: PPX:APT--8110--10 Text Assembly Number: 2601275--0010 Tenth Edition
Transcript
Page 1: Quick Reference Guide -   · PDF fileQuick Reference Guide Order Number: PPX: ... Code I/O Type Description ... LOCK .RTL MSN MSS MDN MDS RM1/2 TS1/2 MUD

SIMATIC APT

Quick Reference Guide

Order Number: PPX:APT--8110--10Text Assembly Number: 2601275--0010Tenth Edition

Page 2: Quick Reference Guide -   · PDF fileQuick Reference Guide Order Number: PPX: ... Code I/O Type Description ... LOCK .RTL MSN MSS MDN MDS RM1/2 TS1/2 MUD

Copyright 2001 by Siemens Energy & Automation, Inc.All Rights Reserved — Printed in USA

Reproduction, transmission, or use of this document or contents is not permitted without express consent of Siemens Energy &Automation, Inc. All rights, including rights created by patent grant or registration of a utility model or design, are reserved.

Since Siemens Energy & Automation, Inc., does not possess full access to data concerning all of the uses and applications ofcustomer’s products, we do not assume responsibility either for customer product design or for any infringements of patents or rightsof others which may result from our assistance.

Page 3: Quick Reference Guide -   · PDF fileQuick Reference Guide Order Number: PPX: ... Code I/O Type Description ... LOCK .RTL MSN MSS MDN MDS RM1/2 TS1/2 MUD

1

Modules and I/O

Series 500t ModulesModuleCode I/O Type Description

2AO AO 2-Channel Analog Output

4AI AI 4-Channel Analog Input

8AI AI 8-Channel Analog Input

8AO AO 8-Channel Analog Output

8WI WI Parallel Word Input

8WO WO Parallel Word Output

8DI DI 8-Channel Discrete Input

8DO DO 8-Channel Discrete Output

32DI DI 32-Channel Discrete Input

32DO DO 32-Channel Discrete Output

ASCII WI, WO ASCII Message Output

BASIC WI, WO Programmable BASIC

DCOMM WI, WO Dual Communications Port

ESPt WI, WO MS-DOS Computer

HSPI WI, WO,DO

High-Speed Pulse Input

HSPID WI, WO High-Speed PID Controller

NIM DO Network Interface/TIWAYt

PLINK WI, WO Peerlinkt

RTD RT RTD

SERVO WI, WO Servo Axis

TC TC Thermocouple

TURBO WI, WO Injection Machine Control

110VO DI, DO 110 VAC Redundant Output

110VR DI, DO 110 VAC Rapid Response

120VR DI, DO 120 VDC Rapid Response

24VDC DI, DO 24 VDC Rapid Response

USER DI, DO,WI, WO

User-defined Module

Series 505t ModulesModuleCode I/O Type Description

2AO AO 2-Channel Analog Output

4AO AO 4-Channel Analog Output

2AI4O AI, AO 20-Channel Analog In/4 Ch Analog Out

4AI4O AI, AO 4-Channel Analog In/4 Ch Analog Out

6AI2O AI, AO 6-Channel Analog In/2 Ch Analog Out

8AI4O AI, AO 8-Channel Analog In/4 Ch Analog Out

8AI AI 8-Channel Analog Input

8AO AO 8-Channel Analog Output

8WI WI Parallel Word Input

8WO WO Parallel Word Output

8DI DI 8-Channel Discrete Input

8DO DO 8-Channel Discrete Output

8WOSF WO Parallel Word Output Special Function

16AF DI, DO,WI, WO

16-Channel Advanced Function

16AI AI 16-Channel Analog Input

16DI DI 16-Channel Discrete Input

16DO DO 16-Channel Discrete Outut

16WI WI Parallel Word Input

16WO WO Parallel Word Output

32DI DI 32-Channel Discrete Input

32DO DO 32-Channel Discrete Output

ATM WI, WO 80386 Computer with Hard Disk orDiskette Drive

BASIC WI, WO Programmable BASIC

ENET WI, WO Ethernet TCP/IP Adapter

H1 WI, WO SINECr H1 Network CommunicationsProcessor

HSC WI, WO High-Speed Counter

HSCE WI, WO High-Speed Counter Encoder

INTRP DI, DO Isolated Discrete Interrupt Module

NIM DO Network Interface/TIWAY

PLINK WI, WO Peerlink

PPEXP WI, WO Program Port Expander

8RTD RT RTD

16RTD RT RTD

SLICE DI, DO Self-contained block of I/O

SREG WI, WO Field Interface; controlsSIMOREGr DC Drive

SREGB DI, DO,WO

Field Interface; controls SIMOREG DCDrive in broadcast mode

SVRT WI, WO Field Interface; controlsSIMOVERTr AC Drive

SVRTB DI, DO,WO

Field Interface; controls SIMOVERTAC Drive in broadcast mode

TC TC Thermocouple

TURBO WI, WO Injection Machine Control

USER DI, DO,WI, WO

User-defined Module

Page 4: Quick Reference Guide -   · PDF fileQuick Reference Guide Order Number: PPX: ... Code I/O Type Description ... LOCK .RTL MSN MSS MDN MDS RM1/2 TS1/2 MUD

2

Modules and I/O (continued)S5 I/O

I/O Type Code Address Types and Ranges

PW 128 to 254

Analog Input AI

PW 128 to 254

OW 0 to 254Analog Input AI OW 0 to 254

IW 0 to 126PW 128 to 254

Analog Output AO OW 0 to 254g p

QW 0 to 126

I 0.0 to 127.7

Discrete Input DI Pp

O

Q 0.0 to 127.7

Discrete Output DO

Q

Pp

O

IW 0 to 126

BCD Input BI PW 0 to 254p

OW 0 to 254

QW 0 to 126

BCD Output BO

Q

PW 0 to 254p

OW 0 to 254

IW 0 to 126

Word Input WI PW 0 to 254p

OW 0 to 254

QW 0 to 126

Word Output WO

QW 0 to 126

PW 0 to 254Word Output WO PW 0 to 254

OW 0 to 254

I/O Extensions *I/O Type Read-only Boolean Read-only Integer Read-only Real Read/Write Integer Read/Write Real

AI RAW I/O name FTAUAI .RAW I/O name.SRV

.FTAU

BI .RAW I/O name

BO .OUT I/O name

TC** RAW I/O name FTAUTC** .RAW I/O name.SRV

.FTAU

RT** RAW I/O name FTAURT** .RAW I/O name.SRV

.FTAU

* AO, DI, DO, WI, and WO do not have any extensions.** The TC and RT I/O types are supported for Series 505 controllers only Resistance Temperature Detector and Thermocouple inputs for** The TC and RT I/O types are supported for Series 505 controllers only. Resistance Temperature Detector and Thermocouple inputs for

S5 are configured as AIs.

Digital Flag Commands

Commands

LATCH ON CLEAR

Page 5: Quick Reference Guide -   · PDF fileQuick Reference Guide Order Number: PPX: ... Code I/O Type Description ... LOCK .RTL MSN MSS MDN MDS RM1/2 TS1/2 MUD

3

Modules and I/O (continued)Program and Unit Extensions

Level Extension

.TSCAN .SNUM1* .IMIN .DIS_SF1

.PWRFL .SNUM2* .ISEC .DIS_SF2

Program .TODS .IID1* .IYEAR .ENABLg

.TOD .IID2* .IMONTH .ABORT

.ECODE1 .OVRUN2* .IDAY

.ECODE2 .IHOUR .IDOW

.ENABL .ECODE2* .DIS_SF2 .BCH_REQ_RESP

Unit .ABORT .SNUM1* .IID1* .BCH_REQ_INFO

.OVRUN2* .SNUM2* .IID2*

.ECODE1* .DIS_SF1 .BCH_REQ

* Series 505 controllers only

DeclarationsSingle-Value Declarations

Type Code Range of Values Comments

Integer I --32768 to +32767

Real R --9.223372 E18 to +9.223372 E18 for Series 505;--1.701412 E38 to +1.701412 E38 for S5

Boolean B 0 and 1

APT Flag F 0 and 1 Use LATCH, CLEAR and ON commands

Text T Any printable character Similar to OSx text tag

Scaled Integer SI --32768 to +32767

Counter CT 0 to 32767 counts

Fast Timer FT 0 to 32767 countsCounts in milliseconds (0.001 seconds);however, accuracy is 0.01 seconds for S5controllers

Slow Timer ST 0 to 32767 counts Counts in tenths of seconds (0.1 seconds)

Array Declarations

Type Code Size of Arrayfor Series 505

Size of Arrayfor S5 Range of Values for Each Element

Integer Array IA 1 to 32767 elements 1 to 256 elements --32768 to +32767

Real Array RA 1 to 16383 elements 1 to 128 elements --9.223372 E18 to +9.223372 E18 for Series 505;--1.701412 E38 to +1.701412 E38 for S5

Boolean Array BA 1 to 1024 elements 1 to 4096 elements Boolean: 0 and 1

DI10 Array IX 10 elements 10 elements Boolean: 0 and 1

DO10 Array DX 10 elements 10 elements Boolean: 0 and 1

Sequence Array SA 1 to 256 elements 1 to 256 elements --32768 to +32767

Shift Register SR 1 to 1023 elements 1 to 256 elements --32768 to +32767

Text Array TA 1 to 2184 elements 1 to 17 elements Any printable character

Page 6: Quick Reference Guide -   · PDF fileQuick Reference Guide Order Number: PPX: ... Code I/O Type Description ... LOCK .RTL MSN MSS MDN MDS RM1/2 TS1/2 MUD

4

Declarations (continued)Commands

Integer and Scaled Integer Commands *

INCREMENT (INC) DECREMENT (DEC)

* Valid only with integers named in the Declaration Table. Cannot be used in user subroutines.

Flag Commands

LATCH ON CLEAR

Sequence Array Commands and ExtensionsCommand Extension Extension Type

RESET .EMPTY Read-only Boolean

ADVANCE .PTR .IOUT Read-only Integer

Shift Register Commands and ExtensionsCommand Extension Extension Type

SHIFT .PV Read/Write Integer

SET_RESET .RESET Read/Write Boolean

CLEAR_RESET .RESET Read/Write Boolean

ENABLE .ENABL Read/Write Boolean

DISABLE .ENABL Read/Write Boolean

Counter Commands and ExtensionsCommand Extension Extension Type

.COUT Read-only Boolean

.TCC Read-only Integer

There are no Counter commands. .TCP Read/Write Integer

.ENABL Read/Write Boolean

.INPUT Read/Write Boolean

Fast/Slow Timer Commands and ExtensionsCommand Flag Extension Extension Type

.TOUT Read-only Boolean

DELAY RENA.TCC Read-only Integer

DELAY .RENA .RESET .ENABL Read/Write Boolean

.TCP Read/Write Integer

Safe-State Commands

Syntax

SSENTRY label; SSTRIGGER identifier;

SSRETURN label; SSARM sfc_name;

SSDEFINE LEVEL level; SSDISARM sfc_name;

SSDEFINE LEVEL level RETENTIVE; SSABORT;

SSDEFINE LOCAL TO sfc_name; SSDEFINE LOCAL TO sfc_name RETENTIVE;

Recipe Commands and Extensions

Command Extension Extension Type

.INUSE Read/Write Boolean

SELECT d ti ti i i.DSTBL Read/Write Boolean

SELECT destination_recipe source_recipe;

OC.DRDY Read/Write Boolean

UNLOCK

CLEAR.SCALE Read/Write Real

CLEAR .RECREQ Read/Write Integer

.HOLDREQ Read/Write Boolean

Page 7: Quick Reference Guide -   · PDF fileQuick Reference Guide Order Number: PPX: ... Code I/O Type Description ... LOCK .RTL MSN MSS MDN MDS RM1/2 TS1/2 MUD

5

Key WordsKey Words Reserved by APT

ABS AND ARCCOS ARCSIN ARCTAN ARRAY

ASM AUX BCDBIN BEGIN BINBCD BITCLEAR

BITS_TO_INT BITSET BITTEST BLOCK BODY BOOLEAN

BY CHAR CLEAR COM1 COM2 COM3

COM4 CON COS EDGE ELSE ELSIF

END ENDIF EXP FALSE FLAG FOR

FRAC FRS GLOBAL IF IN INHERIT

INIT IN_OUT INTEGER INT_TO_BITS IN_ASM INT_TO_REAL

INTERPOLATE LEAD_LAG LEFTSHIFT LIMIT LN LOAD_ARRAY

LOG LOGSTEP LOOKUP_TABLE LOOP LPT1 LPT2

LPT3 LPT4 MATH MAX MIN MINMAX

MOD NIL NOT OF OFF ON

ONN ONS OR ORDER OUT PBITS_TO_INT

PRAGMA PRINT PRIORITY PRN PROUND PTRUNC

PUBLIC RANGE REAL RECORD RETENTIVE RETURN

REVERSE RIGHTSHIFT ROUND SCALE SCOPE SETSSI

SFC SIN SQRT SSABORT SSARM SSDEFINE

SSDISARM SSENTRY SSRETURN SSTRIGGER STATUS SUBROUTINE

TAN THEN TIMING TRIGGER TRUE TRUNC

TYPE UNSCALE UNTIL WHILE XOR

Page 8: Quick Reference Guide -   · PDF fileQuick Reference Guide Order Number: PPX: ... Code I/O Type Description ... LOCK .RTL MSN MSS MDN MDS RM1/2 TS1/2 MUD

6

DevicesTypes of Devices

Device Type Code Failed State

Hand-Operated/Dual-Feedback VND

Single-Drive/Null-Feedback (Energize Open) VSN (O) Closed

Single-Drive/Null-Feedback (Energize Closed) VSN (C) Open

Single-Drive/Single-Feedback (Energize Open) VSS (O) Closed

Single-Drive/Single-Feedback (Energize Closed) VSS (C) Open

ValvesSingle-Drive/Dual-Feedback (Energize Open) VSD (O) Closed

ValvesSingle-Drive/Dual-Feedback (Energize Closed) VSD (C) Open

Dual-Drive/Dual-Feedback VDD Closed

Motor-Drive/Dual-Feedback VMD Closed

Three-Position Low/High/Dual-Feedback BV1 Closed

Three-Position Open/Position/Dual-Feedback BV2 Closed

User-defined VUD User-defined

Single-Drive/Null-Feedback MSN Stopped

Single-Drive/Single-Feedback MSS Stopped

Motors Dual-Drive/Null-Feedback MDN StoppedMotorsDual-Drive/Single-Feedback MDS Stopped

User-defined MUD User-defined

Reversible Forward/Reverse/Dual-Feedback RM1 StoppedReversibleMotors Drive/Direction/Dual-Feedback RM2 Stopped

Two-Speed Low/High/Dual-Feedback TS1 StoppedTwo-SpeedMotors Drive/Speed/Dual-Feedback TS2 Stopped

Dual-Feedback (Energize Extend) CSD (E) Retracted

Cylinders Dual-Feedback (Energize Retract) CSD (R) ExtendedCylindersUser-defined CUD User-defined

Hand Press/Dual-Feedback PND

Single-Drive/Null-Feedback (Energize Raise) PSN (Type R) Down

Single-Drive/Null-Feedback (Energize Lower) PSN (Type L) Up

Single-Drive/Single-Feedback (Energize Raise) PSS (Type R) Down

Single-Drive/Single-Feedback (Energize Lower) PSS (Type L) Up

PressesSingle-Drive/Dual-Feedback (Energize Raise) PSD (Type R) Down

PressesSingle-Drive/Dual-Feedback (Energize Lower) PSD (Type L) Up

Dual-Drive/Dual-Feedback PDD Down

Motor-Drive/Dual-Feedback PMD Down

Three-Position Low/High/Dual-Feedback PS1 Down

Three-Position Raise/Position/Dual-Feedback PS2 Down

User-defined PUD User-defined

Stopwatch Timer TMR

Page 9: Quick Reference Guide -   · PDF fileQuick Reference Guide Order Number: PPX: ... Code I/O Type Description ... LOCK .RTL MSN MSS MDN MDS RM1/2 TS1/2 MUD

7

Devices (continued)Motor Commands

Command Flag Motor Types

LOCK .RTL MSN MSS MDN MDS RM1/2 TS1/2 MUD

UNLOCK .RTU MSN MSS MDN MDS RM1/2 TS1/2 MUD

START .RTR MSN MSS MDN MDS MUD

STARTF .RFWRD RM1/2

STARTR .RREV RM1/2

STARTH .RHIGH TS1/2

STARTL .RLOW TS1/2

STOP.RTS MSN MSS MDN MDS MUD

STOP.RSTOP RM1/2 TS1/2

RESET .RESET MSS MDS RM1/2 TS1/2 MUD

Valve Commands

Command Flag Valve Types

LOCK .RTL VSN VSS VSD VDD VMD BV1/2 VUD

UNLOCK .RTU VSN VSS VSD VDD VMD BV1/2 VUD

OPEN .RTO VSN VSS VSD VDD VMD VUD

OPENL .RLOW BV1/2 VUD

OPENH .RHIGH BV1/2 VUD

OPENA .RTOA VUD

OPENB .RTOB VUD

CLOSE .RTC VSN VSS VSD VDD VMD BV1/2 VUD

RESET .RESET VSS VSD VDD VMD BV1/2 VUD

Cylinder Commands

Command Flag Cylinder Types

LOCK .RTL CSD CUD

UNLOCK .RTU CSD CUD

RESET .RESET CSD CUD

EXTEND .RTE CSD CUD

RETRACT .RTR CSD CUD

Press Commands

Command Flag Press Types

LOCK .RTL PSN PSS PSD PDD PMD PS1/2 PUD

UNLOCK .RTU PSN PSS PSD PDD PMD PS1/2 PUD

RAISE .RTO PSN PSS PSD PDD PMD PUD

RAISEL .RLOW PS1/2 PUD

RAISEH .RHIGH PS1/2 PUD

RAISEA .RTOA PUD

RAISEB .RTOB PUD

LOWER .RTC PSN PSS PSD PDD PMD PS1/2 PUD

RESET .RESET PSS PSD PDD PMD PS1/2 PUD

Page 10: Quick Reference Guide -   · PDF fileQuick Reference Guide Order Number: PPX: ... Code I/O Type Description ... LOCK .RTL MSN MSS MDN MDS RM1/2 TS1/2 MUD

8

Devices (continued)Motor Extensions

Extension Type Boolean Extensions Motor Types

.CMMD MSN MSS MDN MDS MUD

.STRTC MDN MDS MUD

.STOPC MDN MDS MUD

.SFWRD RM1

Output bits (read only).SREV RM1

Output bits (read-only).SHIGH TS1

.SLOW TS1

.DRV RM2 TS2

.DIR RM2

.SPEED TS2

.RUNNG MSN MSS MDN MDS RM1/2 TS1/2 MUD

.RUNF RM1/2

.RUNR RM1/2

Position bits (read-only) .RUNH TS1/2Position bits (read only).RUNL TS1/2

.STPPD MSN MSS MDN MDS RM1/2 TS1/2 MUD

.TRVL MSN MSS MDN MDS RM1/2 TS1/2 MUD

.RUNIO MSS MDS MUD

.FIO RM1/2Feedback inputs

(read only).RIO RM1/2

(read-only).HIO TS1/2

.LIO TS1/2

.FTR MSS MDS RM1/2 TS1/2 MUD

.FTS MSS MDS RM1/2 TS1/2 MUD

.FTRF RM1/2

Fail bits (read only).FTRR RM1/2

Fail bits (read-only).FTRH TS1/2

.FTRL TS1/2

.FAILD RM1/2 TS1/2

.DSBLD MSN MSS MDN MDS RM1/2 TS1/2 MUD

.LOCKD MSN MSS MDN MDS RM1/2 TS1/2 MUD

Operation bits (read/write).NRDY MSN MSS MDN MDS RM1/2 TS1/2 MUD

Operation bits (read/write).MSTRT MSN MSS MDN MDS RM1/2 TS1/2 MUD

.MREV RM1/2

.MHIGH TS1/2

.OVRD MSS MDS MUD

.OVRDF RM1/2

Override bits (read/write) .OVRDR RM1/2Override bits (read/write).OVRDH TS1/2

.OVRDL TS1/2

Device status (read-write) .STATUS MSN MSS MDN MDS RM1/2 TS1/2 MUD

Device status (read-only) .VFLAGS(Series 505 only) MSN MSS MDN MDS RM1/2 TS1/2 MUD

.RTCP MSN MSS MDN MDS RM1/2 TS1/2 MUD

Timer/Counter (read/write).RTCC MSN MSS MDN MDS RM1/2 TS1/2 MUD

Timer/Counter (read/write).STCP MSN MSS MDN MDS RM1/2 TS1/2 MUD

.STCC MSN MSS MDN MDS RM1/2 TS1/2 MUD

Timeout (read only).STPTO MDS RM1/2 TS1/2 MUD

Timeout (read-only).STRTO MDS RM1/2 TS1/2 MUD

Device alarm timer .RRESET MUDDevice alarm timer(read/write) .SRESET MUD

Page 11: Quick Reference Guide -   · PDF fileQuick Reference Guide Order Number: PPX: ... Code I/O Type Description ... LOCK .RTL MSN MSS MDN MDS RM1/2 TS1/2 MUD

9

Devices (continued)Valve Extensions

Extension Type Boolean Extensions Valve Types

.CMMD VSN VSS VSD VDD VMD VUD

.OPENC VDD VMD VUD

.SHIGH BV1

Output bits (read-only) .SLOW BV1Output bits (read only).DRV BV2

.POS BV2

.CLSC VDD VMD VUD

.OPND VND VSN VSS VSD VDD VMD BV1/2 VUD

.CLSD VND VSN VSS VSD VDD VMD BV1/2 VUD

.OPNDA VUD

Position bits (read-only) .OPNDB VUDPosition bits (read only).OPNDH BV1/2 VUD

.OPNDL BV1/2 VUD

.TRVL VSN VSS VSD VDD VMD BV1/2 VUD

.OLS VND VSS VSD VDD VMD VUD

Feedback inputs .CLS VND VSS VSD VDD VMD VUDFeedback inputs(read-only) .HIO BV1/2( y)

.LIO BV1/2

.FTO VSN VSS VSD VDD VMD BV1/2 VUD

.FTC VSN VSS VSD VDD VMD BV1/2 VUD

Fail bits (read-only) .FTOH BV1/2Fail bits (read only).FTOL BV1/2

.FAILD VND VSD VDD VMD BV1/2 VUD

.DSBLD VSN VSS VSD VDD VMD BV1/2 VUD

.LOCKD VSN VSS VSD VDD VMD BV1/2 VUD

Operation bits (read/write).NRDY VSN VSS VSD VDD VMD BV1/2 VUD

Operation bits (read/write).MOPEN VND VSN VSS VSD VDD VMD BV1/2 VUD

.MHIGH BV1/2

.RTS VMD

.OVRD VSS

.OVRDO VSD VDD VMD VUD

.OVRDC VSD VDD VMD VUD

Override bits (read/write) .OVRDH BV1/2Override bits (read/write).OVRDL BV1/2

.CRESET VUD

.ORESET VUD

Device Alarm Timer .ORESET VUDDevice Alarm Timer(read--write) .CRESET VUD

Device status (read-write) .STATUS VND VSN VSS VSD VDD VMD BV1/2 VUD

Device status (read-only) .VFLAGS(Series 505 only) VSN VSS VSD VDD VMD BV1/2 VUD

Timer status (read only).CLSTO VDD VMD BV1/2 VUD

Timer status (read-only).OPNTO VDD VMD BV1/2 VUD

.CTCC VSN VSS VSD VDD VMD BV1/2 VUD

Ti i t ( d/ it ).OTCC VSN VSS VSD VDD VMD BV1/2 VUD

Timer integer (read/write) .CTCP VSN VSS VSD VDD VMD BV1/2 VUD

.OTCP VSN VSS VSD VDD VMD BV1/2 VUD

Page 12: Quick Reference Guide -   · PDF fileQuick Reference Guide Order Number: PPX: ... Code I/O Type Description ... LOCK .RTL MSN MSS MDN MDS RM1/2 TS1/2 MUD

10

Devices (continued)Cylinder Extensions

Extension Type Boolean Extensions Cylinder Types

.CMMD CSD CUD

Output bits (read-only) .EXTC CUDOutput bits (read only).RETC CUD

.TRVL CSD CUD

Position bits (read-only) .EXTENDED CSD CUDPosition bits (read only).RETRACTED CSD CUD

Feedback inputs .ELS CSD CUDFeedback inputs(read-only) .RLS CSD CUD

.FAILD CSD CUD

Fail bits (read-only) .FTE CSD CUDFail bits (read only).FTR CSD CUD

.DSBLD CSD CUD

Operation bits (read/write).LOCKD CSD CUD

Operation bits (read/write).NRDY CSD CUD

.MEXTEND CSD CUD

Override bits (read/write).OVRDE CSD CUD

Override bits (read/write).OVRDR CSD CUD

Device status (read-write) .STATUS CSD CUD

Device status (read-only) .VFLAGS(Series 505 only)

CSD CUD

.ETCP CSD CUD

Timer/Counter (read/write).ETCC CSD CUD

Timer/Counter (read/write).RTCP CSD CUD

.RTCC CSD CUD

Timeout (read only).EXTTO CUD

Timeout (read-only).RETTO CUD

Device alarm timer .ERESET CUDDevice alarm timer(read/write) .RRESET CUD

Stopwatch Commands and Extensions

Command Flag Read-only BooleanExtension

Read/Write IntegerExtension

Read/Write BooleanExtension

START .RSTART .TOUT .PSET .RUNNG

STOP .RSTOP .GT .RATE

HOLD .RHOLD .EQ .CUR

RESET .RESET .MAXC

CONTINUE .RCONT .HOLD

Page 13: Quick Reference Guide -   · PDF fileQuick Reference Guide Order Number: PPX: ... Code I/O Type Description ... LOCK .RTL MSN MSS MDN MDS RM1/2 TS1/2 MUD

11

Devices (continued)Press Extensions

Extension Type Boolean Extensions Press Types

.CMMD PSN PSS PSD PDD PMD PUD

.UPC PDD PMD PUD

.SHIGH PS1

Output bits (read-only) .SLOW PS1Output bits (read only).DRV PS2

.POS PS2

.DOWNC PDD PMD PUD

.UP PND PSN PSS PSD PDD PMD PS1/2 PUD

.DOWN PND PSN PSS PSD PDD PMD PS1/2 PUD

.UPA PUD

Position bits (read-only) .UPB PUDPosition bits (read only).UPH PS1/2

.UPL PS1/2

.TRVL PSN PSS PSD PDD PMD PS1/2 PUD

.ULS PND PSS PSD PDD PMD PUD

Feedback inputs .DLS PND PSS PSD PDD PMD PUDFeedback inputs(read-only) .HIO PS1/2

.LIO PS1/2

.FTR PSS PSD PDD PMD PS1/2 PUD

.FTL PSS PSD PDD PMD PS1/2 PUD

Fail bits (read-only) .FTRH PS1/2Fail bits (read only).FTRL PS1/2

.FAILD PND PSD PDD PMD PS1/2 PUD

.DSBLD PSN PSS PSD PDD PMD PS1/2 PUD

.LOCKD PSN PSS PSD PDD PMD PS1/2 PUD

Operation bits (read/write).NRDY PSN PSS PSD PDD PMD PS1/2 PUD

Operation bits (read/write).MRAISE PND PSN PSS PSD PDD PMD PS1/2 PUD

.MHIGH PS1/2

.RTS PMD

.OVRD PSS

.OVRDD PSD PDD PMD PUD

.OVRDU PSD PDD PMD PUD

Override bits (read/write) .OVRDH PS1/2Override bits (read/write).OVRDL PS1/2

.DRESET PUD

.URESET PUD

Timer status (read only).UPTO PDD PMD PS1/2 PUD

Timer status (read-only).DOWNTO PDD PMD PS1/2 PUD

.DTCC PSN PSS PSD PDD PMD PS1/2 PUD

Ti i t ( d/ it ).UTCC PSN PSS PSD PDD PMD PS1/2 PUD

Timer integer (read/write) .DTCP PSN PSS PSD PDD PMD PS1/2 PUD

.UTCP PSN PSS PSD PDD PMD PS1/2 PUD

Page 14: Quick Reference Guide -   · PDF fileQuick Reference Guide Order Number: PPX: ... Code I/O Type Description ... LOCK .RTL MSN MSS MDN MDS RM1/2 TS1/2 MUD

12

Continuous Function ChartsCFBs

Control Type Continuous Function Blocks

Analog Alarm I Loop

StandardOn/Off P Loop

StandardPD Loop PI Loop

PID Loop

Dead Time Delay Derivative

DynamicFirst Order Lag Integrator

DynamicFirst Order Lead Lag Second Order Lag

Second Order Lead Lag

Dead Time Compensator Dual Mode

Advanced Feedforward Output Adjust Ratio StationAdvancedFeedforward Setpoint Adjust

Limiter Output Limiter Rate Limiter

Average Selector High Selector

SelectorInswitch Selector Low Selector

SelectorMedian Selector Outswitch Selector

Threshold Selector

ValveMotor Position Control Split Range

ValveProportional Time Control Valve Sequencer

Absolute Value Divider

Interlock Math

Math Multiplier SquareMathSquare Root Subtractor

Summer

Correlated Lookup Table Scale

Other Anti-Reset Windup/Constraint TypeOtherAnti-Reset Windup/Select Type

CFB Commands

Command Flag Blocks

Analog Alarm First Order Lead Lag Proportional Time Control

Anti-Reset Windup/C High Selector Rate Limiter

Anti-Reset Windup/S Integrator Scale

ENABLE (ENA) .REN Average Selector Low Selector 2nd Order LagENABLE (ENA)DISABLE (DIS)

.REN

.RDIS Correlated Lookup Math 2nd Order Lead LagDISABLE (DIS) .RDISDead Time Delay Median Selector Split Range

Derivative Motor Position Threshold Selector

1st Order Lag Output Limiter Valve Sequencer

AUTO .RATO Dead Time Compensator On/Off PI Loop

MANUAL (MAN) .RMAN Feedforward Setpoint Adjust P Loop PID Loop

CASCADE (CAS) .RCAS I Loop PD Loop Ratio Station

AUTO .RATO Dual ModeAUTOMANUAL (MAN)

.RATO

.RMAN

Dual ModeFeedforward Output AdjustMANUAL (MAN)

CASCADE (CAS).RMAN.RCAS

p j

CASCADE (CAS)ENABLE (ENA)

.RCAS

.RENENABLE (ENA)DISABLE (DIS)

.REN

.RDIS

ENABLE (ENA) .REN Inswitch Selector

DISABLE (DIS) .RDIS Outswitch Selector

SWITCH

Page 15: Quick Reference Guide -   · PDF fileQuick Reference Guide Order Number: PPX: ... Code I/O Type Description ... LOCK .RTL MSN MSS MDN MDS RM1/2 TS1/2 MUD

13

Continuous Function Charts (continued)Standard Blocks

CFB Extension Type Extensions

Read-only Boolean .INHHA .INHA .INLA .INYDA .INODA .INRCA .INBTA* .OVRUN.DSABL .INLLA

Read-only Integer .ECODE* .IID* .SNUM* .SMODE .VFLAG .IERR*

Read-only Real .ERR

Analog Alarm Read/Write Boolean .ENABL .NRDY .REN .RDISg

Read/Write Integer .IIN* .IPV* .ISP* .CFL .CFH

Read/Write Real.IN .RSP .ST .PV .PVH .PVL .HHA .HA.LA .LLA .ODA .YDA .RCA .SP .APV .ASP.SPH .SPL .ADB

Read-only Boolean .IMAN .IAUTO .ICASC .SERR .INHHA .INHA .INLA .INLLA.INYDA .INODA .INRCA .INBTA* .OVRUN

Read-only Integer .IOUT* .ECODE* .IID* .SNUM* .SMODE .VFLAG .IERR*

Read-only Real .ERR .OUT

PID Read/Write Boolean .NRDY .GMAN .GAUTO .GCASC .RMAN .RATO .RCASPIDRead/Write Integer .IIN* .IPV* .ISP* .IMN* .AWS .CFL .CFH .IBIAS*

Read/Write Real

.IN .LPV .LSP .LMN .HLIM .LLIM .PV .RSP

.ST .PVH .PVL .KC .TI .TD .HHA .HA

.LA .LLA .ODA .YDA .RCA .SP .SPH .SPL

.BIAS

Read-only Boolean .IMAN .IAUTO .ICASC .SERR .INHHA .INHA .INLA .INLLA.INYDA .INODA .INRCA .INBTA* .OVRUN .DOUT

Read-only Integer .ECODE* .IID* .SNUM* .SMODE .VFLAG .IERR* .IOUT*

Read-only Real .ERR

On/Off Read/Write Boolean .NRDY .GMAN .GAUTO .GCASC .RMAN .RATO .RCAS/

Read/Write Integer .IIN* .IPV* .ISP* .IMN* .CFL .CFH .IBIAS*

Read/Write Real.IN .LPV .LSP .LMN .RSP .ST .PV .PVH.PVL .HHA .HA .LA .LLA .ODA .YDA .RCA.SP .SPH .SPL .BIAS

* Series 505 controllers only

Valve Control Blocks

CFB Extension Type Extensions

Read-only Boolean .ACTV

Read-only Integer .ECODE* .IID* .SNUM*Motor Position

ControlRead-only Real .PV

ControlRead/Write Boolean .ENABL .NRDY .REN .RDIS

Read/Write Real .IN .SP .DBAND

Read-only Boolean .DOUT

Proportional Time Read-only Integer .ECODE* .IID* .SNUM*Proportional TimeControl Read/Write Boolean .ENABL .NRDY .REN .RDIS

Read/Write Real .IN .DUTY

Read-only Boolean .ENABLD

Read-only Integer .IOUT1 .IOUT2 .ECODE* .IID* .SNUM*

Split Range Read-only Real .OUT1 .OUT2Split RangeRead/Write Boolean .ENABL .NRDY .REN .RDIS

Read/Write Real .IN .BRKP1 .BRKP2

Read-only Boolean .ENABLD

Read-only Integer .IOUT .ECODE* .IID* .SNUM*

Valve Sequencer Read-only Real .OUTValve SequencerRead/Write Boolean .ENABL .NRDY .DOUT .REN .RDIS

Read/Write Real .IN .BRKPH .BRKPL .RGN

* Series 505 controllers only

Page 16: Quick Reference Guide -   · PDF fileQuick Reference Guide Order Number: PPX: ... Code I/O Type Description ... LOCK .RTL MSN MSS MDN MDS RM1/2 TS1/2 MUD

14

Continuous Function Charts (continued)Advanced Blocks

CFB Extension Type Extensions

Read-only Boolean .IMAN .IAUTO .ICASC .SERR .INHHA .INHA .INLA .INLLA.INYDA .INODA .INRCA .INBTA* .OVRUN

Read-only Integer .IOUT* .ECODE* .IID* .SNUM* .SMODE .VFLAG .IERR*

Read-only Real .ERR .OUT .MOUT .DMOUT .SPVDead Time

C tRead/Write Boolean .NRDY .GMAN .GAUTO .GCASC .RMAN .RATO .RCAS

Compensator Read/Write Integer .IIN* .IPV* .ISP* .IMN* .AWS .CFL .CFH .IBIAS*

Read/Write Real

.IN .LPV .LSP .LMN .HLIM .LLIM .RSP .ST

.PV .PVH .PVL .KC .TI .TD .HHA .HA

.LA .LLA .ODA .YDA .RCA .SP .SPH .SPL

.GAIN .TAU1 .TAU2 .DTIME .BIAS

Read-only Boolean .IMAN .IAUTO .ICASC .SERR .INHHA .INHA .INLA .INLLA.INYDA .INODA .INRCA .INBTA* .OVRUN

Read-only Integer .IOUT* .ECODE* .IID* .SNUM* .SMODE .VFLAG .IERR*

Read-only Real .ERR .OUT

Dual ModeRead/Write Boolean .NRDY .GMAN .GAUTO .GCASC .RMAN .RATO .RCAS .REN

.RDISDual Mode

Read/Write Integer .IIN* .IPV* .ISP* .IMN* .AWS .CFL .CFH .DMODE.IBIAS*

Read/Write Real

.IN .LPV .LSP .LMN .HLIM .LLIM .RSP .ST

.PV .PVH .PVL .KC .TI .TD .HHA .HA

.LA .LLA .ODA .YDA .RCA .SP .SPH .SPL

.PRSET .DLY1 .DLY2 .BIAS

Read-only Boolean .IMAN .IAUTO .ICASC .SERR .INHHA .INHA .INLA .INLLA.INYDA .INODA .INRCA .INBTA* .OVRUN .ENABL

Read-only Integer .IOUT* .ECODE* .IID* .SNUM* .SMODE .VFLAG .IERR*

Read-only Real .ERR .OUT .FFO .SOUT

Feedforward OutputAdj t

Read/Write Boolean .NRDY .GMAN .GAUTO .GCASC .RMAN .RATO .RCAS .REN.RDISp

AdjustRead/Write Integer .IIN* .IPV* .ISP* .IMN* .AWS .CFL .CFH .FMODE

.IBIAS*

Read/Write Real

.IN .LPV .LSP .LMN .HLIM .LLIM .RSP .ST

.PV .PVH .PVL .KC .TI .TD .HHA .HA

.LA .LLA .ODA .YDA .RCA .SP .SPH .SPL

.GAIN .TAU1 .TAU2 .TLEAD .DTIME .BIAS

Read-only Boolean .IMAN .IAUTO .ICASC .SERR .INHHA .INHA .INLA .INLLA.INYDA .INODA .INRCA .INBTA* .OVRUN .DSABL

Read-only Integer .IOUT* .ECODE* .IID* .SNUM* .SMODE .VFLAG .IERR*

Read-only Real .ERR .OUTFeedforward Setpoint

Adj tRead/Write Boolean .NRDY .GMAN .GAUTO .GCASC .RMAN .RATO .RCASp

Adjust Read/Write Integer .IIN* .IPV* .ISP* .IMN* .AWS .CFL .CFH .IBIAS*

Read/Write Real

.IN .LPV .LSP .LMN .HLIM .LLIM .RSP .ST

.PV .PVH .PVL .KC .TI .TD .HHA .HA

.LA .LLA .ODA .YDA .RCA .SP .SPH .SPL

.GAIN .TAU1 .TAU2 .TLEAD .DTIME .MTHI .MTHO .BIAS

Read-only Boolean .IMAN .IAUTO .ICASC .SERR .INHHA .INHA .INLA .INLLA.INYDA .INODA .INRCA .INBTA* .OVRUN

Read-only Integer .IOUT* .ECODE* .IID* .SNUM* .SMODE .VFLAG .IERR*

Read-only Real .ERR .OUT .RATIO

Ratio StationRead/Write Boolean .NRDY .GMAN .GAUTO .GCASC .RMAN .RATO .RCAS

Ratio StationRead/Write Integer .IIN* .IPV* .ISP* .IMN* .AWS .CFL .CFH .IWPV

.IBIAS*

Read/Write Real

.IN .LPV .LSP .LMN .HLIM .LLIM .RSP .ST

.PV .PVH .PVL .KC .TI .TD .HHA .HA

.LA .LLA .ODA .YDA .RCA .SP .SPH .SPL

.OFFST .WPV .BIAS

* Series 505 controllers only

Page 17: Quick Reference Guide -   · PDF fileQuick Reference Guide Order Number: PPX: ... Code I/O Type Description ... LOCK .RTL MSN MSS MDN MDS RM1/2 TS1/2 MUD

15

Continuous Function Charts (continued)Dynamic Blocks

CFB Extension Type Extensions

Read-only Boolean .ENABLD

Read-only Integer .IOUT .ECODE* .IID* .SNUM*

Dead Time Delay Read-only Real .OUT .DMOUTDead Time DelayRead/Write Boolean .ENABL .NRDY .REN .RDIS

Read/Write Real .IN .INIC .OUTIC .GAIN .DTIME

Read-only Boolean .ENABLD

Read-only Integer .IOUT .ECODE* .IID* .SNUM*

Derivative Read-only Real .OUTDerivativeRead/Write Boolean .ENABL .NRDY .REN .RDIS

Read/Write Real .IN

Read-only Boolean .ENABLD

Read-only Integer .IOUT .ECODE* .IID* .SNUM*

Integrator Read-only Real .OUT .DMOUTIntegratorRead/Write Boolean .ENABL .NRDY .REN .RDIS

Read/Write Real .IN .INIC .OUTIC .GAIN .DTIME .TAU1

Read-only Boolean .ENABLD

Read-only Integer .IOUT .ECODE* .IID* .SNUM*

First Order Lag Read-only Real .OUT .DMOUTFirst Order LagRead/Write Boolean .ENABL .NRDY .REN .RDIS

Read/Write Real .IN .INIC .OUTIC .GAIN .DTIME .TAU1

Read-only Boolean .ENABLD

Read-only Integer .IOUT .ECODE* .IID* .SNUM*.

First Order Lead Lag Read-only Real .OUT .DMOUTFirst Order Lead LagRead/Write Boolean .ENABL .NRDY .REN .RDIS

Read/Write Real .IN .INIC .OUTIC .GAIN .DTIME .TLEAD .TAU1

Read-only Boolean .ENABLD

Read-only Integer .IOUT .ECODE* .IID* .SNUM*

Second Order Lag Read-only Real .OUT .DMOUTSecond Order LagRead/Write Boolean .ENABL .NRDY .REN .RDIS

Read/Write Real .IN .INIC .OUTIC .GAIN .DTIME .TAU1 .TAU2

Read-only Boolean .ENABLD

Read-only Integer .IOUT .ECODE* .IID* .SNUM*.

Second Order Lead Read-only Real .OUT .DMOUTSecond Order LeadLag Read/Write Boolean .ENABL .NRDY .REN .RDIS

Read/Write Real .IN .INIC .OUTIC .GAIN .DTIME .TLEAD .TAU1.TAU2

* Series 505 controllers only

Page 18: Quick Reference Guide -   · PDF fileQuick Reference Guide Order Number: PPX: ... Code I/O Type Description ... LOCK .RTL MSN MSS MDN MDS RM1/2 TS1/2 MUD

16

Continuous Function Charts (continued)Selector Blocks

CFB Extension Type Extensions

Read-only Boolean .ENABLD .IN10K .IN20K .IN30K

Read-only Integer .IOUT .POS .ECODE* .IID* .SNUM* .STAT .ISTATUS

Average SelectorRead-only Real .OUT

Average SelectorRead/Write Boolean .ENABL .NRDY .REN .RDIS

Read/Write Integer .IIN1 .IIN2 .IIN3

Read/Write Real .IN1 .IN2 .IN3 .TVAL

Read-only Boolean .ENABLD

Read-only Integer .IOUT .POS .ECODE* .IID* .SNUM*

High SelectorRead-only Real .OUT

High SelectorRead/Write Boolean .ENABL .NRDY .REN .RDIS

Read/Write Integer .IIN1 .IIN2 .IIN3 .IIN4 .SW1 .SW2 .SW3 .SW4

Read/Write Real .IN1 .IN2 .IN3 .IN4

Read-only Boolean .ENABLD

Read-only Integer .IOUT .POS .ECODE* .IID* .SNUM*

Low SelectorRead-only Real .OUT

Low SelectorRead/Write Boolean .ENABL .NRDY .REN .RDIS

Read/Write Integer .IIN1 .IIN2 .IIN3 .IIN4 .SW1 .SW2 .SW3 .SW4

Read/Write Real .IN1 .IN2 .IN3 .IN4

Read-only Boolean .ENABLD

Read-only Integer .IOUT .ECODE* .IID* .SNUM*

Inswitch SelectorRead-only Real .OUT

Inswitch SelectorRead/Write Boolean .ENABL .NRDY .REN .RDIS

Read/Write Integer .IIN1 .IIN2 .IIN3 .IIN4 .POS

Read/Write Real .IN1 .IN2 .IN3 .IN4

Read-only Boolean .ENABLD

Read-only Integer .IOUT .POS .ECODE* .IID* .SNUM*

Median SelectorRead-only Real .OUT

Median SelectorRead/Write Boolean .ENABL .NRDY .REN .RDIS

Read/Write Integer .IIN1 .IIN2 .IIN3

Read/Write Real .IN1 .IN2 .IN3

Read-only Boolean .ENABLD

Read-only Integer .ECODE* .IID* .SNUM* .IOUT1 .IOUT2 .IOUT3 .IOUT4

Outswitch SelectorRead-only Real .OUT1 .OUT2 .OUT3 .OUT4

Outswitch SelectorRead/Write Boolean .ENABL .NRDY .REN .RDIS

Read/Write Integer .IIN .POS

Read/Write Real .IN .PV1 .PV2 .PV3 .PV4

Read-only Boolean .DOUT .ENABLD

Read-only Integer .ECODE* .IID* .SNUM*

Threshold Selector Read/Write Boolean .ENABL .NRDY .REN .RDISThreshold SelectorRead/Write Integer .IIN .LIMIT

Read/Write Real .IN .LIMIT

* Series 505 controllers only

Page 19: Quick Reference Guide -   · PDF fileQuick Reference Guide Order Number: PPX: ... Code I/O Type Description ... LOCK .RTL MSN MSS MDN MDS RM1/2 TS1/2 MUD

17

Continuous Function Charts (continued)Limiter Blocks

CFB Extension Type Extensions

Read-only Boolean .ENABLD

Read-only Integer .IOUT .ECODE* .IID* .SNUM*

O t t Li itRead-only Real .OUT

Output Limiter Read/Write Boolean .ENABL .NRDY .REN .RDIS

Read/Write Integer .IIN

Read/Write Real .IN .HLIM .LLIM

Read-only Boolean .ENABLD .EQ

Read-only Integer .IOUT .ECODE* .IID* .SNUM*

Rate LimiterRead-only Real .OUT

Rate LimiterRead/Write Boolean .ENABL .NRDY .REN .RDIS

Read/Write Integer .IIN

Read/Write Real .IN .RLIM

* Series 505 controllers only

Math Control Blocks

CFB Extension Type Extensions

Read-only Integer .IOUT

Absolute Value, Read-only Real .OUTAbsolute Value,Square Root, Square Read/Write Integer .IINq , q

Read/Write Real .IN

Read-only Integer .IOUT

Divider, Multiplier, Read-only Real .OUTDivider, Multiplier,Subtractor, Summer Read/Write Integer .IIN1 .IIN2,

Read/Write Real .IN1 .IN2

Read-only Boolean .ENABLD .DOUTE .DOUTF .DOUTG .DOUTH

Read-only Integer .IOUTE .IOUTF .IOUTG .IOUTH .ECODE* .IID* .SNUM*

Math BlockRead-only Real .OUTE .OUTF .OUTG .OUTH

Math BlockRead/Write Boolean .ENABL .NRDY .REN .RDIS .DINA .DINB .DINC .DIND

Read/Write Integer .IINA .IINB .IINC .IIND

Read/Write Real .INA .INB .INC .IND

Interlock There are no extensions associated with the interlock blocks.

* Series 505 controllers only

Page 20: Quick Reference Guide -   · PDF fileQuick Reference Guide Order Number: PPX: ... Code I/O Type Description ... LOCK .RTL MSN MSS MDN MDS RM1/2 TS1/2 MUD

18

Continuous Function Charts (continued)Other Control Blocks

CFB Extension Type Extensions

Read-only Integer .ECODE* .IID* .SNUM*Anti-Reset

Windup/ConstraintRead/Write Boolean .ENABL .NRDY .REN .RDIS

Windup/ConstraintRead/Write Real .IN .HLIM .LLIM

Read-only Integer .ECODE* .IID* .SNUM*Anti-Reset

Windup/SelectRead/Write Boolean .ENABL .NRDY .REN .RDIS

Windup/SelectRead/Write Real .IN

Read-only Boolean .ENABLD

Read-only Integer .IOUT .ECODE* .IID* .SNUM* .POS

Correlated Lookup Read-only Real .OUTCorrelated LookupTable Read/Write Boolean .ENABL .NRDY .REN .RDIS

Read/Write Integer .IIN

Read/Write Real .IN

Read-only Boolean .ENABLD

Read-only Integer .IOUT .ECODE* .IID* .SNUM*

ScaleRead-only Real .OUT

ScaleRead/Write Boolean .ENABL .NRDY .REN .RDIS

Read/Write Integer .IIN

Read/Write Real .IN .HRIN .LRIN .HROUT .LROUT

* Series 505 controllers only

Math LanguageMath Language Functions

Type of Function Format of Function Resultant Value Type Code Type

ABS(expression) Real/Integer RLL/SFPGM STL

EXP(expression) Real SFPGM STL

FRAC(expression) Real SFPGM STL

INT_TO_REAL(expression) Real SFPGM STL

Arithmetic Functions LN(expression) Real SFPGM STLArithmetic FunctionsLOG(expression) Real SFPGM STL

ROUND(expression) Integer SFPGM STL

SQRT(expression) Real SFPGM STL

TRUNC(expression) Integer SFPGM STL

ARCCOS(expression) Real SFPGM STL

ARCSIN(expression) Real SFPGM STL

Trigonometric FunctionsARCTAN(expression) Real SFPGM STL

Trigonometric FunctionsCOS(expression) Real SFPGM STL

SIN(expression) Real SFPGM STL

TAN(expression) Real SFPGM STL

BITS_TO_INT(array variable) Integer SFPGM STL

BITTEST(variable,integer) Boolean RLL STL

Bit Functions EDGE(expression) Boolean RLL STLBit FunctionsLEFTSHIFT(expression,expression) Integer SFPGM STL

RIGHTSHIFT(expression,expression) Integer SFPGM STL

Page 21: Quick Reference Guide -   · PDF fileQuick Reference Guide Order Number: PPX: ... Code I/O Type Description ... LOCK .RTL MSN MSS MDN MDS RM1/2 TS1/2 MUD

19

Math Language (continued)Math Language Procedures

Value Type(s) Used Format of Procedure Code Type

FRS(Boolean expression, Boolean variable); RLL STL

Boolean SETSSI(Boolean); * RLLBooleanUNPACK_BITS(Boolean array,variable); RLL STL

Boolean to Integer

INT_TO_BITS(Boolean array,variable);

PACK_BITS(Boolean array,variable);

RLL/SFPGM STL

RLL STLg

PBITS_TO_INT(variable,integer); SFPGM STL

CLEAR(flag_variable); RLL STL

Flag LATCH(flag_variable); RLL STLFlagON(flag_variable); RLL STL

BCDBIN(variable,variable); RLL/SFPGM STL

BINBCD(variable,variable); RLL/SFPGM STL

BIT_ASSIGN(variable,integer,expression); RLL STL

Integer BITCLEAR(variable,integer); RLL/SFPGM STLIntegerBITSET(variable,integer); RLL/SFPGM STL

IREAD(variable); RLL STL

IWRITE(variable); RLL STL

INTERPOLATE(in1,out1,array1,array2); SFPGM STL

Real LEAD_LAG(in1,last in,out2,lead,lag,gain); SFPGM STLRealLOOKUP_TABLE(in1,out1,array1,array2); SFPGM STL

COPY_BYTES(source,source offset,destination,destination offset,# of bytes); *

RLL

COPY_DIRECT(destination,source,integer); RLL/SFPGM STL

Real or Integer LIMIT(in1,out1,low,high); SFPGM STLReal or Integer(all values of same type) LOAD_ARRAY(in1,array); RLL/SFPGM STL( yp )

MAX(in1,max); SFPGM STL

MIN(in1,min); SFPGM STL

MINMAX(in1,max,min); SFPGM STL

Integer to Real SCALE(in1,out1,type,low,high); SFPGM STL

UNSCALE(in1,out1,type,low,high); SFPGM STL

Real to Integer PROUND(integer, variable); SFPGM STLReal to IntegerPTRUNC(integer, variable); SFPGM STL

* Series 505 controllers only

SIMATIC, S5, SINEC, SIMOREG, and SIMOVERT are registered trademarks of Siemens AG.

APT, Series 500, Series 505, ESP, PCS, Peerlink, and TIWAY are trademarks of Siemens Energy & Automation, Inc.


Recommended