Variables to HMI, best practice

Varri

Member
Join Date
Jan 2020
Location
South
Posts
30
Hi!

When using a PLC and HMI from different brands i have to write up every variable on the HMI end.

Whats the best practice on this?

Is it a must to arrange bits and words and create arrways and structs for the data? And whats the benefit of that?
 
Thinking of communications if you have variables that are spread about then it will take lots of send/receives to transfer the data, for example, many HMI manufacturers communications are optimised to reduce communication as much as possible so if you have a block of contiguous variables it can read/write them in one block, however, if your variables are spread about all over the variable database it would have to send/receive each variable separately, this increases the coms time as each time a variable is sent/received there will be a number of bytes on information like start/end and check sum chars so for example sending a single variable to a PLC will require perhaps a start char, an address char, variable type char, length char, the actual variable data then check sum & end char, so to send one variable may take 30 or so characters, whereas sending contiguous variable values only takes the same control & information chars plus the actual variables. would only increase this by the amount of actual variable data.
So in short, keep variables in blocks and bit variables in 16 bit boundaries, most HMI communication blocks can only transfer bits in 16 bit boundaries so if these are spread about over the variable bit address space it will be sending a lot of data that is not required.
This is particularly important in fixed address variables like Mitsubishi and many others where the variables are address based rather than symbol based.
 

Similar Topics

Is there any way to access the disk I/O variables in citect V5.5, there is one tag available in the variables.dbf and it is defined as disk I/O...
Replies
3
Views
1,762
Hi All Hopefully someone can help me, i have a Schneider m340 PLC with a magelis HMI that was pre-programmed by the supplier of a piece of...
Replies
16
Views
14,145
Dear All, Is it possible to replace a variables in vijeo desiger like other HMI software by find replace variables to save time. let's say that a...
Replies
19
Views
21,012
Hi, we are using Rx3i CRU320 redundant PLC system and we noticed a discrepancy between Primary and Secondary controller. Couple of variables (DI)...
Replies
8
Views
268
Hi everyone, I was wondering how we declare Persistent Variables in Studio 5000 (main reason to keep the values during power cycle and program...
Replies
5
Views
241
Back
Top Bottom