Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - brett.mckenzienz

Pages: [1]
1
Open Discussion / Re: ModbusTCP Word swap not swapping on data write
« on: January 26, 2017, 12:56:33 AM »
Thanks Archie!

Works fine now. both swap settings at true reads and writes data correctly.

Another issue that came up and I cant figure out how to fix is I get this message when trying to set a PLCAddressWriteValue property in the keyboard input tool. I have used a basic label instead and I am able to set the PLC properties on that. This was the same problem I came across when trying to upgrade my 3.99s to 3.99t earlier today.

Message - "Object of type 'MfgControl.AdvancedHMI.Drivers.PLCAddressItem' cannot be converted to type 'MfgControl.AdvancedHMI.Drivers.PLCAddressItem'."

Thanks again for you exceptional service!

2
Open Discussion / Re: ModbusTCP Word swap not swapping on data write
« on: January 25, 2017, 08:25:40 PM »
Thanks Archie for your help.

It took me a couple of attempts to get your patch running, the only success I have had is to import it into my project as 3.99s. I did migrate a version into 3.99t but that caused me some grief and once loading the patch I couldn't get anything to work.

Anyway - provided that patched .dll is the same running on v 3.99s these are the results:

Before the patch my swap bytes was true, and my swap words was true. - this is the setting where reading the value is correct, but writing is word swapped.

After patching, to READ the correct value I use Byte Swap = True, Word Swap = True.
to WRITE the correct value I use Byte Swap = False, Word Swap = True.

 I'm certain that before the patch the bytes were following the same order reading and writing as I did a word swap only in my PLC as a temporary workaround which worked well. (with byte swap = true word swap = false)

Thanks very much for your quick support

3
Open Discussion / ModbusTCP Word swap not swapping on data write
« on: January 25, 2017, 05:00:34 PM »
Hi all,

I am using ver 3.99s, i see 3.99t has been released, but Archie's changelog doesn't list my issue so I haven't tried it

I have used Advanced HMI and automation direct PLCs several times, and often used floating point with them with no issue. Today I am trying to pair a Siemens S7-1200 with advanced HMI. The issue I am currently having a problem with is word swapping and floating point values.

With word swap = false in my driver settings the words are in the incorrect order when writing to the PLC (Keyboard Input tool) and also in the incorrect order when reading the value (BasicLabel)

With word swap = true in my driver settings the words are in the CORRECT order when reading from the PLC (BasicLabel) and in the INCORRECT order when writing the value to the PLC (Keyboard input tool)

If I enter a value into one of my holding registers in the PLC with the Siemens TIA software, it shows the value correctly on the HMI basiclabel. When i then attempt to write the value to the holding register with the HMI, it writes the words in reversed order, and shows the same garbage value in TIA and on the HMI basiclabel.

Thanks in advance for any help with this
Brett

Pages: [1]