Knowledge

IEC 61131-3

Source ๐Ÿ“

25: 1466: 1336: 1331: 833: 503:
Generic Data Types โ€“ Only available for the input / output/ in-out variables of system-defined Program Organization Units (POUs, see below)
1690: 129: 717: 35: 1140: 1716: 1441: 413:
WSTRING โ€“ Variable-length double-byte character string. Literals specified with a double quote, "This is a WSTRING Literal"
93: 826: 65: 410:
STRING โ€“ Variable-length single-byte character string. Literals specified with single quote, 'This is a STRING Literal'
802:
important implementation independent of device manufacturers, includes object oriented programming (OOP) as an option
772: 587:
Directly derived data type โ€“ type derived from one of the above types to give new name and initial value as a type.
72: 1586: 819: 50: 1346: 876: 144: 125: 79: 590:
References โ€“ a kind of strongly typed pointer. Arithmetic operation of the value of this type is prohibited.
61: 1261: 1256: 958: 886: 228: 179: 1611: 698:
The 3rd revision of the standard describes how to implement OOP within the application programming
1251: 578: 374:
LDATE โ€“ calendar date (8 byte, nanoseconds since 1970-01-01, restricted to multiple of one day)
157: 118: 1391: 1281: 842: 556:
ANY_DATE: DATE_AND_TIME (DT), DATE_AND_TIME(LDT), DATE, TIME_OF_DAY (TOD), LTIME_OF_DAY(LTOD)
140: 1711: 1659: 1626: 1491: 1060: 8: 1591: 407:
WCHAR โ€“ Double-byte character (2 byte, limited to characters 0 to 65535 of ISO/IEC 10646)
86: 1721: 1566: 1546: 183: 688:
Configuration โ€“ processing resources, memory for IO, execution rates, number of tasks.
404:
CHAR โ€“ Single-byte character (1 byte, limited to characters 0 to 255 of ISO/IEC 10646)
46: 363:
LTIME โ€“ (8 byte). Literals extend to nanoseconds in the form of T#5m90s15ms542us15ns
1216: 643: 211: 169: 760: 1446: 163: 1705: 1669: 1664: 1654: 1649: 1644: 1636: 1631: 1621: 1606: 1601: 1556: 1541: 1536: 1531: 1521: 1511: 1501: 1496: 1476: 1471: 1461: 1436: 1426: 1416: 1381: 1376: 1366: 1361: 1351: 1326: 1321: 264: 147:. It defines three graphical and two textual programming language standards: 396:
LDATE_AND_TIME / LDT โ€“ time and date (8 byte, nanoseconds since 1970-01-01)
1616: 1596: 1316: 1291: 1276: 1271: 1266: 1246: 1241: 1236: 1231: 1226: 1221: 1211: 1206: 1201: 901: 794: 739: 673:
Custom โ€“ Libraries of functions can be supplied by a vendor or third party.
151: 1191: 953: 946: 941: 795:
IEC 61131-3:2013 Programmable controllers - Part 3: Programming languages
260: 173: 574:
Subrange data type โ€“ puts limits on value i.e., INT(4 .. 20) for current
1561: 1486: 1401: 1341: 1674: 1451: 1386: 1175: 1170: 1165: 1160: 1155: 1145: 1135: 1130: 1120: 1115: 1110: 1105: 1095: 1090: 1085: 1070: 1065: 1055: 1050: 1045: 1035: 1030: 1025: 1020: 1015: 1010: 1005: 1000: 978: 973: 963: 936: 931: 921: 916: 911: 906: 896: 891: 881: 866: 861: 856: 805: 121: 24: 1526: 1100: 1080: 1040: 995: 926: 871: 360:
TIME โ€“ (implementer specific). Literals in the form of T#5m90s15ms
1551: 1516: 1506: 1075: 988: 799: 811: 584:
Structured data type โ€“ composite of several variables and types.
42: 1581: 1576: 1571: 1481: 1421: 1411: 1406: 1396: 1356: 1306: 132:; the current (third) edition was published in February 2013. 1431: 1311: 1301: 1296: 1286: 1196: 1125: 217: 182:(SFC), has elements to organize programs for sequential and 1456: 1371: 968: 205: 659:
Standard: ADD, SQRT, SIN, COS, GT, MIN, MAX, AND, OR, etc.
393:
DATE_AND_TIME / DT โ€“ time and date (implementer specific)
1150: 637: 631: 611: 16:
Industrial standard for programmable logic controllers
789: 577:
Array data type โ€“ multiple values stored in the same
382:
TIME_OF_DAY / TOD โ€“ clock time (implementer specific)
692: 718:"A very short history of PLC programming platforms" 682: 650: 742:. International Electrotechnical Commission (IEC) 128:. It was first published in December 1993 by the 1703: 646:โ€“ Can be executed once, on a timer, on an event. 231:โ€“ whole numbers (Considering byte size 8 bits) 827: 732: 709: 51:introducing citations to additional sources 371:DATE โ€“ calendar date (implementer specific) 139:deals with basic software architecture and 834: 820: 601:Variable attributes: RETAIN, CONSTANT, AT 1691:International Electrotechnical Commission 761:PLCopen: The third edition of IEC 61131-3 385:LTIME_OF_DAY / LTOD โ€“ clock time (8 byte) 808:implementation for Siemens devices, only 252:UDINT โ€“ Unsigned double integer (4 byte) 246:USINT โ€“ Unsigned short integer (1 byte) 41:Relevant discussion may be found on the 542:ANY_BIT: LWORD, DWORD, WORD, BYTE, BOOL 527:ANY_UNSIGNED: ULINT, UDINT, UINT, USINT 1704: 773:"Time Duration Literals (IEC 61131-3)" 715: 255:ULINT โ€“ Unsigned long integer (8 byte) 199:Bit Strings โ€“ groups of on/off values 815: 571:Enumerated data type with named value 240:DINT โ€“ signed double integer (4 byte) 234:SINT โ€“ signed short integer (1 byte) 263:โ€“ floating point IEC 60559 (same as 18: 243:LINT โ€“ signed long integer (8 byte) 13: 14: 1733: 841: 783: 693:Object oriented programming (OOP) 530:ANY_SIGNED: LINT, DINT, INT, SINT 117:is the third part (of 10) of the 624: 249:UINT โ€“ Unsigned integer (2 byte) 34:relies largely or entirely on a 23: 683:Configuration, resources, tasks 651:Program organization unit (POU) 176:in 3rd edition of the standard) 765: 754: 143:of the control program within 126:programmable logic controllers 1: 702: 401:Character / Character string 237:INT โ€“ signed integer (2 byte) 190: 1717:Electronic design automation 636:Tasks โ€“ Can be multiple per 614:Mapping โ€“ Input, Output, I/O 596: 7: 548:ANY_STRING: STRING, WSTRING 184:parallel control processing 10: 1738: 716:Stevic, Tom (5 May 2017). 1683: 1184: 849: 537:ANY_DURATION: TIME, LTIME 180:Sequential function chart 565:User-defined Data Types 423:STRING escape sequences 223:LWORD โ€“ 64 bit (8 byte) 158:Function block diagram 119:international standard 551:ANY_CHAR: CHAR, WCHAR 521:ANY_REAL: LREAL, REAL 390:Date and time of Day 196:Elementary Data Type 141:programming languages 568:Enumerated data type 47:improve this article 425: 285: 740:"IEC 61131-3:2013" 630:Resource โ€“ Like a 421: 281: 202:BOOL - 1 bit (0,1) 1699: 1698: 500: 499: 472:page (form feed) 352: 351: 283:Duration literals 220:โ€“ 32 bit (4 byte) 214:โ€“ 16 bit (2 byte) 208:โ€“ 8 bit (1 byte) 112: 111: 97: 1729: 836: 829: 822: 813: 812: 777: 776: 769: 763: 758: 752: 751: 749: 747: 736: 730: 729: 727: 725: 720:. Control Design 713: 667:Function Blocks 429:Escape sequence 426: 420: 286: 280: 273:LREAL โ€“ (8 byte) 270:REAL โ€“ (4 byte) 170:Instruction list 160:(FBD), graphical 107: 104: 98: 96: 55: 27: 19: 1737: 1736: 1732: 1731: 1730: 1728: 1727: 1726: 1702: 1701: 1700: 1695: 1679: 1180: 845: 840: 786: 781: 780: 771: 770: 766: 759: 755: 745: 743: 738: 737: 733: 723: 721: 714: 710: 705: 695: 685: 653: 627: 599: 512:ANY_ELEMENTARY 193: 172:(IL), textual ( 164:Structured text 154:(LD), graphical 108: 102: 99: 56: 54: 40: 28: 17: 12: 11: 5: 1735: 1725: 1724: 1719: 1714: 1697: 1696: 1694: 1693: 1687: 1685: 1681: 1680: 1678: 1677: 1672: 1667: 1662: 1657: 1652: 1647: 1642: 1639: 1634: 1629: 1624: 1619: 1614: 1609: 1604: 1599: 1594: 1589: 1584: 1579: 1574: 1569: 1564: 1559: 1554: 1549: 1544: 1539: 1534: 1529: 1524: 1519: 1514: 1509: 1504: 1499: 1494: 1489: 1484: 1479: 1474: 1469: 1464: 1459: 1454: 1449: 1444: 1439: 1434: 1429: 1424: 1419: 1414: 1409: 1404: 1399: 1394: 1389: 1384: 1379: 1374: 1369: 1364: 1359: 1354: 1349: 1344: 1339: 1334: 1329: 1324: 1319: 1314: 1309: 1304: 1299: 1294: 1289: 1284: 1279: 1274: 1269: 1264: 1259: 1254: 1249: 1244: 1239: 1234: 1229: 1224: 1219: 1214: 1209: 1204: 1199: 1194: 1188: 1186: 1182: 1181: 1179: 1178: 1173: 1168: 1163: 1158: 1153: 1148: 1143: 1138: 1133: 1128: 1123: 1118: 1113: 1108: 1103: 1098: 1093: 1088: 1083: 1078: 1073: 1068: 1063: 1058: 1053: 1048: 1043: 1038: 1033: 1028: 1023: 1018: 1013: 1008: 1003: 998: 993: 992: 991: 986: 976: 971: 966: 961: 956: 951: 950: 949: 944: 934: 929: 924: 919: 914: 909: 904: 899: 894: 889: 884: 879: 874: 869: 864: 859: 853: 851: 847: 846: 839: 838: 831: 824: 816: 810: 809: 803: 797: 792: 785: 784:External links 782: 779: 778: 764: 753: 731: 707: 706: 704: 701: 700: 699: 694: 691: 690: 689: 684: 681: 680: 679: 676: 675: 674: 671: 665: 664: 663: 660: 652: 649: 648: 647: 641: 634: 626: 623: 622: 621: 618: 615: 609: 608:Direct (local) 606: 598: 595: 594: 593: 592: 591: 588: 585: 582: 575: 572: 569: 563: 562: 561: 560: 559: 558: 557: 554: 553: 552: 549: 543: 540: 539: 538: 535: 534: 533: 532: 531: 528: 522: 515:ANY_MAGNITUDE 510: 498: 497: 494: 490: 489: 486: 482: 481: 478: 474: 473: 470: 466: 465: 462: 458: 457: 454: 450: 449: 446: 442: 441: 438: 434: 433: 430: 419: 418: 417: 416: 415: 414: 411: 408: 405: 399: 398: 397: 394: 388: 387: 386: 383: 377: 376: 375: 372: 366: 365: 364: 361: 350: 349: 346: 342: 341: 338: 334: 333: 330: 326: 325: 322: 318: 317: 314: 310: 309: 306: 302: 301: 298: 294: 293: 290: 279: 278: 277: 276: 275: 274: 271: 258: 257: 256: 253: 250: 247: 244: 241: 238: 235: 226: 225: 224: 221: 215: 209: 203: 192: 189: 188: 187: 177: 167: 161: 155: 152:Ladder diagram 110: 109: 45:. Please help 31: 29: 22: 15: 9: 6: 4: 3: 2: 1734: 1723: 1720: 1718: 1715: 1713: 1710: 1709: 1707: 1692: 1689: 1688: 1686: 1682: 1676: 1673: 1671: 1668: 1666: 1663: 1661: 1658: 1656: 1653: 1651: 1648: 1646: 1643: 1640: 1638: 1635: 1633: 1630: 1628: 1625: 1623: 1620: 1618: 1615: 1613: 1610: 1608: 1605: 1603: 1600: 1598: 1595: 1593: 1590: 1588: 1585: 1583: 1580: 1578: 1575: 1573: 1570: 1568: 1565: 1563: 1560: 1558: 1555: 1553: 1550: 1548: 1545: 1543: 1540: 1538: 1535: 1533: 1530: 1528: 1525: 1523: 1520: 1518: 1515: 1513: 1510: 1508: 1505: 1503: 1500: 1498: 1495: 1493: 1490: 1488: 1485: 1483: 1480: 1478: 1475: 1473: 1470: 1468: 1465: 1463: 1460: 1458: 1455: 1453: 1450: 1448: 1445: 1443: 1440: 1438: 1435: 1433: 1430: 1428: 1425: 1423: 1420: 1418: 1415: 1413: 1410: 1408: 1405: 1403: 1400: 1398: 1395: 1393: 1390: 1388: 1385: 1383: 1380: 1378: 1375: 1373: 1370: 1368: 1365: 1363: 1360: 1358: 1355: 1353: 1350: 1348: 1345: 1343: 1340: 1338: 1335: 1333: 1330: 1328: 1325: 1323: 1320: 1318: 1315: 1313: 1310: 1308: 1305: 1303: 1300: 1298: 1295: 1293: 1290: 1288: 1285: 1283: 1280: 1278: 1275: 1273: 1270: 1268: 1265: 1263: 1260: 1258: 1255: 1253: 1250: 1248: 1245: 1243: 1240: 1238: 1235: 1233: 1230: 1228: 1225: 1223: 1220: 1218: 1215: 1213: 1210: 1208: 1205: 1203: 1200: 1198: 1195: 1193: 1190: 1189: 1187: 1183: 1177: 1174: 1172: 1169: 1167: 1164: 1162: 1159: 1157: 1154: 1152: 1149: 1147: 1144: 1142: 1139: 1137: 1134: 1132: 1129: 1127: 1124: 1122: 1119: 1117: 1114: 1112: 1109: 1107: 1104: 1102: 1099: 1097: 1094: 1092: 1089: 1087: 1084: 1082: 1079: 1077: 1074: 1072: 1069: 1067: 1064: 1062: 1059: 1057: 1054: 1052: 1049: 1047: 1044: 1042: 1039: 1037: 1034: 1032: 1029: 1027: 1024: 1022: 1019: 1017: 1014: 1012: 1009: 1007: 1004: 1002: 999: 997: 994: 990: 987: 985: 982: 981: 980: 977: 975: 972: 970: 967: 965: 962: 960: 957: 955: 952: 948: 945: 943: 940: 939: 938: 935: 933: 930: 928: 925: 923: 920: 918: 915: 913: 910: 908: 905: 903: 900: 898: 895: 893: 890: 888: 885: 883: 880: 878: 875: 873: 870: 868: 865: 863: 860: 858: 855: 854: 852: 848: 844: 843:IEC standards 837: 832: 830: 825: 823: 818: 817: 814: 807: 804: 801: 798: 796: 793: 791: 788: 787: 774: 768: 762: 757: 741: 735: 719: 712: 708: 697: 696: 687: 686: 677: 672: 669: 668: 666: 661: 658: 657: 655: 654: 645: 642: 639: 635: 633: 629: 628: 625:Configuration 619: 616: 613: 610: 607: 604: 603: 602: 589: 586: 583: 580: 576: 573: 570: 567: 566: 564: 555: 550: 547: 546: 544: 541: 536: 529: 526: 525: 523: 520: 519: 517: 516: 514: 513: 511: 508: 507: 505: 504: 502: 501: 495: 492: 491: 487: 484: 483: 479: 476: 475: 471: 468: 467: 463: 460: 459: 455: 452: 451: 447: 444: 443: 439: 436: 435: 431: 428: 427: 424: 412: 409: 406: 403: 402: 400: 395: 392: 391: 389: 384: 381: 380: 378: 373: 370: 369: 367: 362: 359: 358: 356: 355: 354: 353: 347: 344: 343: 339: 336: 335: 331: 328: 327: 323: 320: 319: 315: 312: 311: 307: 304: 303: 299: 296: 295: 291: 288: 287: 284: 272: 269: 268: 266: 265:IEEE 754-2008 262: 259: 254: 251: 248: 245: 242: 239: 236: 233: 232: 230: 227: 222: 219: 216: 213: 210: 207: 204: 201: 200: 198: 197: 195: 194: 185: 181: 178: 175: 171: 168: 166:(ST), textual 165: 162: 159: 156: 153: 150: 149: 148: 146: 142: 138: 133: 131: 127: 123: 120: 116: 106: 95: 92: 88: 85: 81: 78: 74: 71: 67: 64: โ€“  63: 62:"IEC 61131-3" 59: 58:Find sources: 52: 48: 44: 38: 37: 36:single source 32:This article 30: 26: 21: 20: 1627:27000-series 983: 767: 756: 746:11 September 744:. Retrieved 734: 724:11 September 722:. Retrieved 711: 600: 422: 379:Time of day 340:Microsecond 332:Millisecond 292:Description 282: 186:, graphical. 136: 134: 115:IEC 61131-3 114: 113: 100: 90: 83: 76: 69: 57: 33: 1712:IEC 61131-3 509:ANY_DERIVED 348:Nanosecond 1706:Categories 703:References 656:Functions 545:ANY_CHARS 496:hex value 357:Duration 191:Data types 174:deprecated 135:Part 3 of 103:March 2017 73:newspapers 1722:IEC 61131 806:de:STEP 7 670:Standard: 620:Temporary 597:Variables 456:linefeed 432:Produces 137:IEC 61131 122:IEC 61131 43:talk page 678:Programs 644:Programs 617:External 579:variable 524:ANY_INT 518:ANY_NUM 464:newline 1684:Related 1397:13522-5 1185:ISO/IEC 1076:62014-4 989:61131-9 984:61131-3 954:60906-1 947:60870-6 942:60870-5 800:CODESYS 790:PLCopen 480:return 324:Second 316:Minute 229:INTEGER 87:scholar 662:Custom 605:Global 89:  82:  75:  68:  60:  1675:81346 1670:80000 1665:42010 1660:39075 1655:38500 1650:33001 1645:29119 1641:29110 1637:27040 1632:27002 1622:27000 1617:26300 1612:24752 1607:24744 1602:24727 1597:24707 1592:23360 1587:23270 1582:23008 1577:23003 1572:23000 1567:22537 1562:22275 1557:21827 1552:21000 1547:20802 1542:20000 1537:19788 1532:19770 1527:19757 1522:19752 1517:18181 1512:18014 1507:18004 1502:17025 1497:17024 1492:16485 1487:16262 1482:15938 1477:15897 1472:15693 1467:15511 1462:15504 1457:15445 1452:15444 1447:15408 1442:15291 1437:15288 1432:14882 1427:14651 1422:14496 1417:14443 1412:13818 1407:13816 1402:13568 1392:13346 1387:13250 1382:12207 1377:11801 1372:11544 1367:11404 1362:11179 1357:11172 1352:10967 1347:10646 1342:10279 1337:10179 1332:10165 1327:10116 1322:10021 1176:63382 1171:63119 1166:63110 1161:62700 1156:62682 1151:62680 1146:62455 1141:62386 1136:62379 1131:62366 1126:62365 1121:62351 1116:62325 1111:62304 1106:62264 1101:62262 1096:62196 1091:62061 1086:62056 1081:62026 1071:61970 1066:61968 1061:61960 1056:61883 1051:61851 1046:61850 1041:61784 1036:61511 1031:61508 1026:61499 1021:61400 1016:61360 1011:61355 1006:61334 1001:61162 996:61158 979:61131 974:61030 969:60958 964:60929 959:60908 937:60870 932:60601 927:60559 922:60446 917:60364 912:60320 907:60309 902:60297 897:60269 892:60228 887:60112 882:60068 877:60063 872:60062 867:60038 862:60034 857:60027 493:$ xx 437:$ $ 368:Date 308:Hour 289:Unit 218:DWORD 94:JSTOR 80:books 1317:9995 1312:9945 1307:9899 1302:9593 1297:9592 1292:9529 1287:9496 1282:9293 1277:9126 1272:8859 1267:8652 1262:8632 1257:8613 1252:7942 1247:7816 1242:7813 1237:7812 1232:7811 1227:7810 1222:6523 1217:6429 1212:5218 1207:4909 1202:2022 1197:1989 748:2021 726:2021 506:ANY 488:tab 485:$ T 477:$ R 469:$ P 461:$ N 453:$ L 445:$ ' 300:Day 261:REAL 212:WORD 206:BYTE 124:for 66:news 1192:646 850:IEC 638:CPU 632:CPU 612:I/O 440:$ 345:ns 337:us 329:ms 145:PLC 130:IEC 49:by 1708:: 448:' 321:s 313:m 305:h 297:d 267:) 835:e 828:t 821:v 775:. 750:. 728:. 640:. 581:. 105:) 101:( 91:ยท 84:ยท 77:ยท 70:ยท 53:. 39:.

Index


single source
talk page
improve this article
introducing citations to additional sources
"IEC 61131-3"
news
newspapers
books
scholar
JSTOR
international standard
IEC 61131
programmable logic controllers
IEC
programming languages
PLC
Ladder diagram
Function block diagram
Structured text
Instruction list
deprecated
Sequential function chart
parallel control processing
BYTE
WORD
DWORD
INTEGER
REAL
IEEE 754-2008

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.

โ†‘