beautypg.com

Rockwell Automation Logix5000 Controllers IEC 61131-3 Compliance Programming Manual User Manual

Page 14

background image

14

Rockwell Automation Publication 1756-PM018C-EN-P - November 2012

Chapter 1 IEC61131-3 Compliance

10

4

DINT Data Type

Tag variable definition

10

10

REAL Data Type

Tag variable definition

10

12

Time

Tag variable definition, TIMER Structure

10

16

STRING data type

8 Bits

11

1

Data type Hierarchy

none

12

1

Direct Derivation from elementary types

User Defined data type structures

12

4

Array data types

Tag variable definition

12

5

Structured Data types

User defined data type structures

13

1

BOOL, SINT, INT, DINT initial value of 0

Tag variable definition

13

4

REAL, LREAL initial value of 0.0

Tag variable definition

13

5

Time initial value of T#0s

Tag variable definition, reset (RES) instruction

13

9

Empty String ''

Descriptions and Strings

14

1

Initialization of directly derived types

Import/export

14

4

Initialization of array data types

Import/export

14

5

Initialization of structured type elements

Import/export

14

6

Initialization of derived structured data types

Import/export

19a

2a

Textual invocation, non-formal

Available in ST

20

1

Use of EN and ENO

Function present in LD but not labeled. Available in FBD.

20

2

Usage without EN and ENO

Available in FBD

20

3

Usage with EN and without ENO

Available in FBD

20

4

Usage without EN and with ENO

Available in FBD

21

1

Overloaded functions ADD(INT, DINT) or ADD(DINT, REAL)

All overloaded types that are supported are documented with
each instruction

22

1

_TO_ conversion function

RAD, DEG instructions Radians to/from Decimal. String numeric
conversion STOD, STOR, RTOS, DTOS. Others not needed
because of instruction overloading

22

2

Truncate conversion function

TRN instruction in LD and TRUNC function in ST

22

3

BCD to INT Convert

FRD instruction in LD

22

4

INT to BCD Convert

TOD instruction in LD

23

1

Absolute value

ABS instruction

23

2

Square root

SQR instruction in LD and FBD and SQRT function in ST.

23

3

Natural log

LN instruction

23

4

Log base 10

LOG instruction

23

6

Sine in radians

SIN instruction / function

23

7

Cosine in radians

COS instruction / function

23

8

Tangent in radians

TAN instruction / function

23

9

Principal arc sine

ASN instruction in LD and FBD, and ASIN function in ST

23

10

Principal arc cosine

ACS instruction in LD and FBD, and ACOS function in ST

23

11

Principal arc tangent

ATN instruction in LD and FBD, and ATAN function in ST

24

12

Arithmetic add

ADD instruction in LD and FBD, and + in ST.

Table Number:

(1)

Feature Number:

Feature Description:

Extensions and Implementation Notes: