| Crates.io | iectypes |
| lib.rs | iectypes |
| version | 0.1.0 |
| created_at | 2025-12-05 12:40:13.043374+00 |
| updated_at | 2025-12-05 12:40:13.043374+00 |
| description | IEC 61131-3 data types, enums, and type definitions |
| homepage | https://github.com/radevgit/plc |
| repository | https://github.com/radevgit/plc |
| max_upload_size | |
| id | 1968120 |
| size | 35,914 |
IEC 61131-3 data types, enums, and type definitions for PLC programming.
This crate provides fundamental type definitions used across PLC programming tools:
use iectypes::{PouType, VarClass, DataType};
let pou_type = PouType::FunctionBlock;
let var_class = VarClass::Input;
Program Organization Unit types per IEC 61131-3:
Program - Scheduled by tasks, has stateFunction - Stateless, returns a valueFunctionBlock - Stateful, instantiatedVariable classification:
Input, Output, InOut - Interface variablesLocal, Temp - Internal variablesExternal, Global - Shared variablesConstant - Compile-time constantsElementary IEC 61131-3 data types:
BOOLSINT, INT, DINT, LINT, USINT, UINT, UDINT, ULINTREAL, LREALSTRING, WSTRINGTIME, DATE, TOD, DTBYTE, WORD, DWORD, LWORDMIT