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,102
Hello everyone, I'm working on a project that involves controlling an array of nozzles within a CNC environment, where the nozzles travel along a...
Replies
5
Views
120
Hi, I was noticing that Profibus connectors have 2 ports on them that can house 2 separate cables. Can I use 2 cables with Profibus signals...
Replies
4
Views
127
Hi, Seeking consultation on an implementation matter, and have a question about Modicon Compact 984 communication through RS485: Three Modicon...
Replies
3
Views
89
Dear all, I don't know why setup of password became challenging and weird. After setting up the password and try to upload the ladder from the plc...
Replies
3
Views
91
Back
Top Bottom