Using structures in CoDeSys v2.3

electro89

Member
Join Date
Mar 2012
Location
Canada
Posts
106
I'm very new to Structured Text and dealing with user-defined data types. I've looked online and on the codesys manual, and from what i've read, it seems like this should work:

TYPE HistoryArr :
STRUCT
BaseRequested:REAL;
BaseActual:REAL;
AngleRequested:REAL;
AngleActual:REAL;
DateAndTime: DT;
END_STRUCT
END_TYPE

This is typed in the POU.
Codesys wants me to declare HistoryArr.. What type would I declare this as? eg. WORD, INT, etc
 

Similar Topics

Somewhat new to Schneider (aka Modicon) PLC's and the Unity Pro XL programming software. I have a TSX P57 6634M PLC. I would like to take an...
Replies
3
Views
3,159
I have a project to automate four generator sets. The system will monitor and store the load demand of the factory. Once there's Power outage, the...
Replies
0
Views
40
Adding ethernet equipment to an existing panel that has none. We have some solid ethernet cables coming from other remote cabinets that I plan to...
Replies
3
Views
104
I'm trying to control a device via MODBUS RTU and the ModbusRtuMasterV2_PcCOM in Twincat 3. I've configured a device with the right com port and...
Replies
7
Views
203
Hi, I'm trying to use the IO Device Library (Product Versions) which is configured to work with the 1756-EN4TR & 1756-EN2TR but my system uses...
Replies
0
Views
52
Back
Top Bottom