Attention
IronPLC supports IEC 61131-3 Structured Text excluding I/O mapping.
Functions¶
IEC 61131-3 defines a set of standard functions available in all programming languages. Functions are stateless — they produce the same output for the same inputs every time.
Numeric Functions¶
Trigonometric Functions¶
Arithmetic Functions¶
Comparison Functions¶
Assignment Functions¶
Function |
Description |
|---|---|
Assignment (copy value) |
Selection Functions¶
Bit String Functions¶
String Functions¶
Time and Date Functions¶
Function |
Description |
|---|---|
Add two durations |
|
Subtract durations |
|
Scale duration by number |
|
Divide duration by number |
|
Add duration to date-and-time |
|
Add duration to time-of-day |
|
Subtract duration from date-and-time |
|
Subtract duration from time-of-day |
|
Difference between two datetimes |
|
Difference between two dates |
|
Difference between two times-of-day |
|
Combine date and time-of-day |
|
Extract date from datetime |
|
Extract time-of-day from datetime |
Type Conversion Functions¶
Function |
Description |
|---|---|
Type conversion functions ( |
|
BCD conversion functions |