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,214
Hello, We are now working on a software to collet the configuration of different PLC brands ,using a third software to backup all the simens...
Replies
0
Views
12
Hi, I wrote a sequence loop using EQU and MOV instructions and would like to validate that i'm doing this properly. i attached a picture of the...
Replies
3
Views
45
Hi I'm very new to PLC programming and I'm trying to find out if this library (Tc2_NcFifoAxes) is necessary for our task In our case we need to...
Replies
0
Views
50
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
95
Back
Top Bottom