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 - coffin_dodger

Pages: [1]
1
Support Questions / Re: Productivity 2000 Modbus bit addressing
« on: November 08, 2019, 02:45:20 PM »
The AdvancedHMI driver uses the Modicon style addressing which starts with a 1, but is really offset 0. For example, 40001 translates to function code 3 with offset 0.

If the PLC doesn't support function code 0x16, then the only way to write bits within an integer is to read the integer, alter the value, then write it back and hope within the read-to-write time period the PLC (or other source) did not also change something within the integer.

Could you please elaborate on this answer.

How would AHMI write to bit 3 in 40001 for example?

2
Support Questions / ModBusTCP ConnectionEstablished Event
« on: February 22, 2018, 03:38:06 PM »
When is the modbusTCP driver "ConnectionEstablished" event fired? Anyone got a sample, been trying to set a property on a textbox to indicate when connection is ok but up to now no joy. Any help much appreciated. Any coding example will do.

3
Support Questions / Re: Schneider M Seires Modbus TCP/IP
« on: February 10, 2018, 09:57:21 AM »
OK... from your comment, "the 'first coil' would be addressed by 00001"

So, "from Modbus perspective", is this the first coil used in the ladder? If I have a coil addressed in the program as %Q0.1, and a following coil addressed as %M0.1, would the Modbus addresses be 00001, and 00002, respectively? My conundrum is how to separate real world output coils from internal coils.

I was able to read and write to the internal %M.x coils using modbus 00001 etc, but couldn't figure out how to address the real world PLC outputs.

Pending your reply, I'll look up the documentation on my PLC next week ,and get you a screen capture of it

Yes this happens which I find strange, for example;

I create 2 rungs in SoMachine with 2 outputs (1 on each rung driven by individual inputs) "%Q0.0" and "%Q0.15" respectively. I create 2 pilotlights in my HMI, one to read 10001 and one to read 10015, and it doesnt work for 10015, however when I change the address 10015 to 10002 it works.

Still can't understand why.

Pages: [1]