Virtuino Forum

Full Version: Logo VM parameter mapping
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, 

I'm having some troubles with the VM parameter mapping.

I have a logo 8.3 with the following VM parameter mapping.
Math instrution B034 - Parameter V1 ==> Word 0
Math instrution B048 - Parameter V1 ==> Word 2

When setting a variable to address 0 - functions 03/06 - integer
the logo takes over the parameter V1 from the Virtuino

When setting a variable to address 2 - functions 03/06 - integer
the logo does not take over this value.

Where am I doing something wrong?

When changing the addresses to 1 and 3 it also does not work correctly on the second variable.
When changing the addresses to 0 and 1, or 1 & 2 things start getting crazy. (As I should expect.)
I have figured this out.

There seems to be a "bug" in the Siemens Logo8.3.

When a parameter has the address Word :0 the modbus address is 0
When a parameter has the address Word :2 the modbus address is 1
When a parameter has the address Word :4 the modbus address is 2

So you always have to divide the address by 2.

The same happens with a Dword.

I figured this out by checking the values with qModMaster
(04-10-2023, 09:18 PM)Dkyndt Wrote: [ -> ]I have figured this out.

There seems to be a "bug" in the Siemens Logo8.3.

When a parameter has the address Word :0 the modbus address is 0
When a parameter has the address Word :2 the modbus address is 1
When a parameter has the address Word :4 the modbus address is 2

So you always have to divide the address by 2.

The same happens with a Dword.

I figured this out by checking the values with qModMaster

Hi, I've found out that this is right, always divide by 2 the VM address. I'm now struggling with another issue; I have a timer B003 VM address is 48, values are hh:mm I can change the mm value by writing the address 24 but I have no clue on how to change the hh value.
Basically I can change the minute, in fact if I write 63 in minutes from Virtuino  I have 01:03 on the LOGO that is correct but I need to set the time in the format hh:mm, any suggestions?

I hope I have been clear