Click PLC and Advanced HMI

angadh

Member
Join Date
Apr 2021
Location
manchester
Posts
6
Hi,

I have developed a small PLC program of few motors, PB, and a tank. The communication between HMI and PLC is Modbus TCP. While I was trying to develop the HMI simulation the tank level doesn't work, I tried adding a separate counter to increase the level of the tank. However, the level doesn't vary. Any advice on how to increase the level of the tank according to Motor-1 turned on and decreases when Pump-1 turns on. Could anyone suggest any plan to solve the issue. HMI used here is Advanced HMI and PLC is Click PLC.
 
What have you done to simulate the level ? the way I would do it is create some code for simulation (you can delete it later), assuming you are using an analog for level, temporarily remove the call to the analog so that you can force the value into the register, using simple logic & perhaps a time variable (most PLC's have them like one second clock) when the pump runs to fill the tank, increment the analog word by a set amount each time i.e. AND Pump Running AND Timer ADD +1 to variable.
do the same for emptying. very simple I do not know click so don't know how the analog level is used but in for example Mitsubishi the analog is copied into a register (variable) then scaled i.e. if it is 0-2000, then scale it to 0-100 (percent level), when Im' simulating I just disable the call to the analog & write some simple logic to increment or decrement the value, put compares on it so that it does not go below 0 or above high level.
Perhaps you should post this in the main forum, it will get more replies, also perhaps post your code so far (preferably in pictures & pdf) so people can get a better idea of what you are trying to achieve.
 
Hi Thank you for the reply.

I have used timer to control the pumps. For varying the level I need to convert bit to an integer right?. Please advice
 
Not exactly, you just create a timer that resets itself & use the pulse to add a value or increment an integer
......T10
-----|/|------------------------( T10 500ms) //create a self resetting timer

......T10...........Pump 1 Running (Filling)
-----| |-----------| |-------------[ADD 2 My_Level] // on timer pulse & pump add a value to an integer this becomes your level.
Do the same for empty but use subtract

......T10...........Pump 2 Running (Emptying)
-----| |-----------| |-------------[SUB 2 My_Level]
 
Is it possible the AHMI is writing to the level tag every scan?

It might be a BasicLabel has a write tag and a default value that it might be overwriting the tank level integer when you change it.

As a test change the tank level tag in the PLC only and try to manipulate that and see if it changes then. If not from the HMI do a Find All and see if the tag is being written to anywhere else in the program.
 
I tried with the all tags in the PLC but the level is not moving. I tried with HMI tank properties and changed the background image properties to stretch and inputted a value thus the tank level reached value. But there is no max PLC value and Min PLC value where I can substitute the Modbus address.
 
Not used Click PLC but perhaps post a pdf of your code, have you got an integer variables that you are putting the level into
 
Presently I tried with a Math function which is an integer, then level moved up when I mapped the Modbus address. However, I need to reduce the level as well when the pump is off that's not happening. I will share the images
 
Pump is working synchronized but the level is yet a problem. Which function do I need to use to increase an integer value?
 

Similar Topics

So I installed advanced hmi and grabbed an ethernet cable. I have the click C0-12DRE-1-D PLC. I installed the advanced hmi and added the...
Replies
13
Views
1,980
Complete noob here, using a Click C0-02DD1-D to run a test stand. Requirement is to turn on motor run for X seconds, turn off and dwell for X...
Replies
6
Views
1,019
merry christmas and happy new year i have a click c0-00dr-d and allen bradley 2711c-t3m. can the panelview talk to the click plc via modbus...
Replies
1
Views
190
Hi guys, i have never had to do a PWM Output or input before i have a Device that to dimm the lamp output from the ballast, the ballast has a 24V...
Replies
6
Views
932
I am trying to set a bit to command the Zebra ZT230 to print a label and receive a confirmation bit from the unit via an Automation Direct Click...
Replies
0
Views
657
Back
Top Bottom