4/29/2022 9:02 AM | |
Joined: 12/18/2014 Last visit: 9/14/2025 Posts: 35958 Rating:
|
To do this, we would first have to know how the data is transferred to the LOGO!. |
4/29/2022 10:06 AM | |
Joined: 5/28/2018 Last visit: 3/20/2025 Posts: 29 Rating:
|
I made a small video of what is happening, maybe it will be easier to help me this way |
4/29/2022 12:34 PM | |
Joined: 12/18/2014 Last visit: 9/14/2025 Posts: 35958 Rating:
|
Can you say if you must words swap? 3412 to 1234? Or all 4 bytes swap? 4321 to 1234? |
4/29/2022 1:08 PM | |
Joined: 5/28/2018 Last visit: 3/20/2025 Posts: 29 Rating:
|
I think the first option is 3412 to 1234, but I'm not sure, in the photo below the location of the bits that work correctly in the opc-server and display exactly what is on the weighing terminal. [snip] Now I have to read the data from the weighing terminal and display it on the logo, but there is some kind of offset by several units of weight and the more I load the scales, the greater this offset becomes, although on the opc server everything shows as on the terminal screen, and there is an offset on the logo. The weighing terminal has 557 grams, and the logo displays 554 [snip] AttachmentImages.zip (756 Downloads) |
Last edited by: Jen_Moderator at: 05/02/2022 07:29:47Links removed and added files as an attachment. |
|
5/6/2022 7:34 AM | |
Joined: 9/11/2014 Last visit: 9/12/2025 Posts: 867 Rating:
|
Hi, try like in the picture: If your scale give the value 12.123KG = 12123 in LOGO!, then this should work with a resolution of 1g. For a display of the value you need analog amplifier to define how to display what you want. This should work till 32755 = 32.755kg 1:1. You can check in the simulation. Open the datatable to enter the values from your scale (left side in the picture) Important is that your scale give the value 1:1 als float. Then you can use the F/I-FB with a resolution of 1.000. In this case LOGO! just translate from float to Integer. The accepted range is the LOGO! integer range till 32755, which is 32.755kg. Hope this helps. Attachmenta_Wight.zip (559 Downloads) |
Follow us on