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,379
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
6
Views
137
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
100
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
70
Sorry if this has been asked before, and apologies if this seems like a trivial issue, but I am new to Beckhoff and have been banging my head...
Replies
2
Views
148
Back
Top Bottom