TwinCAT - read/write between two runtime

hapetter

Member
Join Date
Feb 2009
Location
Kristiansand
Posts
58
Hi.

How to read/write complex datastructures between two runtime in TwinCAt 2. Do I have to define anything within system manager?

E.g. How to write/read "g_stRemoteHmiAlarm" between 2 runtime:

Thanks!

Code:
TYPE ST_RemoteHmiAlarms :
STRUCT
                (* Bit[0] = LoLo, Bit[1] = Lo, Bit[2] = Hi, Bit[3] = HiHi, Bit[4] = Roc, Bit[5] = Bool *)
                xRemoteHmiAlarm                        : ARRAY[0..5] OF BOOL;                                                               (* Alarm flags*)
                sAlarmText                                                       : ARRAY[0..5] OF STRING;                                                           (* Alarm text  to remote HMI system*)
                fValue                                                                 : ARRAY[0..5] OF REAL;                                                (* Alarm value to remote HMI system. Will be 1 for boolean alarms and a real number for analog alarms *)
END_STRUCT
END_TYPE
 
g_stRemoteHmiAlarm                                 : ARRAY[0..NOF_ALARMS] OF ST_RemoteHmiAlarms;                 (* Global alarm array for remote HMI system *)
 

Similar Topics

Dear, I want to write data into a txt or csv file. This data contains text and numbers. Later I want to read some of that data into the...
Replies
0
Views
5,251
Hello guys! I have a ARRAY[0..2047,0..3].. I want to have column by column, how can I read it? Data := ARRAY[0..2047,0..3] OF STRING; In Matlab...
Replies
0
Views
1,210
Hey! Is it possible to read out the emergency (EMCY) objects from EtherCAT slaves in TwinCAT 3.1? I know this is possible using CANOpen...
Replies
1
Views
2,479
Hello Members: I want to ask you that is that is there any possibility to read every bit of a data type WORD in TwinCAT. I want to see condition...
Replies
2
Views
2,524
Hey all, We're trying to read values from a Beckhoff PLC that is programmed by a third party. We see in the PLC the value...
Replies
1
Views
3,379
Back
Top Bottom