Conversion instructions

From

IEC Types

Special Types

To

BOOL

WORD

DWORD

INT

DINT

UINT

UDINT

REAL

LREAL

TIME

DT

DATE

TOD

STRING

BOOL16

BOOL32

BOOLS

BCD_WORD

BCD_DWORD

IPADDR

ETLANADDR

BOOL

2

3

3

3

3

3

3

2

2

1

WORD

3

2

3

3

3

3

3

1

1

1

1

DWORD

3

3

2

3

3

3

3

1

1

1

1

1

INT

3

3

3

2

3

3

3

3

2

1

4

1

DINT

3

3

3

3

2

3

3

3

2

1

4

1

UINT

3

3

3

3

3

2

3

3

2

4

1

UDINT

3

3

3

3

3

3

2

3

2

1

1

1

4

1

REAL

2

1

7

7

7

7

2

2

1

1

LREAL

2

7

7

7

7

2

2

1

1

TIME

1

1

1

1

1

1

1

DT

1

1

1

1

DATE

1

8

1

TOD

1

8

1

STRING

5

5

5

5

5

1

1

1

5

5

BOOL16

1

BOOL32

1

BOOLS

1

1

WORD_BCD

1

1

DWORD_BCD

1

1

IPADDR

6

ETLANADDR

6

1

typed conversion instruction

2

overloaded conversion instruction

3

typed and overloaded conversion instructions

4

typed, leading-zero and left-aligned instructions

5

typed and step-saver instructions

6

typed and no-leading-zeros instructions

7

overloaded and overloaded-trunc instructions

8

via CONCAT_DATE_TOD instruction

Modified on: 2024-01-17Feedback on this pagePanasonic hotline