Home > Forum > Operator terminals (Weintek) > Use of indexed variables on the page
- This topic has 1 response, 1 participant and was last updated 3 years, 1 month ago da Sergio Bertana.
-
AuthorPost
-
March 8, 2021 at 8: 04 am #59188OrazioParticipant
I have a project with a cMT-SVR connected in Modbus TCP to a PLC. The status and control variables of the pumps to be monitored (30 pumps) are acquired from the PLC.
I am creating an Overview page with the most important info of the pumps (status and alarm) and detail pages with all the information available for the single pump.
Since the information to be displayed is the same for all the pumps, I wanted to know if it is possible to create a single page and “pass” the information of which pump to display. On the page I have to view statuses, analog values and send commands (start and stop)
I wanted to avoid creating as many identical pages as there are pumps.
March 8, 2021 at 8: 16 am #59191Sergio BertanaAdministrator ForumTo get what you asked you can use indexed variables, in EasyBuilder programming there are 32 index registers that can be used to create an offset on the variable address.
As you can see from the screenshot, I matched a key (But you can do the same thing with any object) to a Modbus address of one of our PLCs SlimLine (Variable 100.16 address Modbus 40016). To the variable I have associated the register index 0 (It is possible to manage 16 at 16 bits and 16 at 32 bits), now the Modbus address associated with the object will be given by the sum of the defined value 40016 with the value of the index register 0.
The 16-bit index registers are allocated in the HMI memory from the LW-9200 to the LW-9215.
The 32-bit index registers are allocated in the HMI memory from the LW-9230 to the LW-9260.Now you will have to allocate all the variables of the various pumps on subsequent locations in the PLC program and create a page with all your variables, to switch from one pump to another just increase the value of the index register by the necessary offset.
-
AuthorPost
- You must be logged in to reply to this topic.