TwinCat - Simple problem, too big for my experience

Chicadee987

Member
Join Date
Aug 2011
Location
Lappeenranta
Posts
2
Hi!

Found this forum by accident and so far it seems to be active. :)

PROBLEM:
I want to use ARRAY OF BOOLs to determine which coils are set and which are not. The array should also carry out name of the control situation and possibly a number for it. Control situation name will be used by user in HMI for obvious reasons. User should be able to create more Items (up to limit) and rename them.

CURRENT IDEA OF SOLUTION:

ARRAY OF STRUCT:
ItemNumber(a) ItemName(b) ControlGroups(c)

where
a = SINT
b = STRING
c = ARRAY [n..m] OF BOOL
for example 0 0 1 could be LightGroup1 off, LightGroup2
off, PlugRelays On

I feel something is still missing from the post, but Im getting tired :(

I dont want you to solve my problem but ASK the questions which lead me to the solution..

ps. Please don´t ban me.
 

Similar Topics

Hi, I'm a complete newb to Twincat and PLC programming in general, I'm trying to teach myself some basics on an old piece of equipment. I want a...
Replies
6
Views
4,395
I am using twincat 3 to send some strings over TCP/IP. Where the server is a sensor and my PLC is the client. I noticed that the sensor didnt...
Replies
2
Views
97
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
251
Hi! I am trying to run the 'SimpleSample' (https://infosys.beckhoff.com/content/1033/TF5100_TC3_NC_I/Resources/3438746891/.zip ) to understand the...
Replies
2
Views
117
I am developing a library in twincat and one of the function uses IID_ITcVnAccess_TcVnPoint2_DINT and the definition of this type is defined in...
Replies
0
Views
84
Back
Top Bottom