Fasthotrod
Member
I can't even begin to tell you guys how happy I am right now.
After spending all day yesterday and this morning banging my head against the wall, reading everything I can get my hands on, and getting frustrated to no end, I finally have some results!
I took the example MODBUS program that milldrone recommended and I modified it to two MRX commands.
MRX
Port Number: K2
Slave Address: K1
Function Code: 03
Start Slavce Memory Address: 40001
Start Master Memory Address: V2000
Number of Elements: K10
MODBUS Data type: 584/984 Mode
Exception Response Buffer: V400
MRX
Port Number: K2
Slave Address: K1
Function Code: 03
Start Slavce Memory Address: 40033
Start Master Memory Address: V2033
Number of Elements: K10
MODBUS Data type: 584/984 Mode
Exception Response Buffer: V400
I tried to get this working yesterday but I had some conflicts. My RX LED was on steady, so I did some troubleshooting and found my +/- wires backwards. A quick swap and I was okay... until I tried to poll for some data.
Every time I tried to get data, I had errors. EVERY time. I swapped the port configuration, changed the baud rate, you name it. I gave up and went home for the day.
Today I stopped and asked myself; What is the DEC-550 looking for in the communications cycle? Modbus obviously, 19200 baud, 8N1... I checked the PLC and sure enough, I had not set the "Port 2" to N (default is odd?) and I had not saved the "Port 2" configuration to the PLC. (Dumb mistake!)
A quick change and BINGO! Tx/Rx are blinking like mad, and my PLC is polling the network without errors!
Now all I need to do is figure out how to address the V-memory slots as an input to my analog 0-10 VDC output cards and my relay outputs...
Quick question: Is it proper to setup the "Number of Elements: K10" using the K instead of V10? (V10 changes to TA10 for some reason, and the counters do not show activity... anyone care to explain why?)
Thanks again for the hints, tips, links and suggestions everybody! I appreciate it!
Mark
After spending all day yesterday and this morning banging my head against the wall, reading everything I can get my hands on, and getting frustrated to no end, I finally have some results!
I took the example MODBUS program that milldrone recommended and I modified it to two MRX commands.
MRX
Port Number: K2
Slave Address: K1
Function Code: 03
Start Slavce Memory Address: 40001
Start Master Memory Address: V2000
Number of Elements: K10
MODBUS Data type: 584/984 Mode
Exception Response Buffer: V400
MRX
Port Number: K2
Slave Address: K1
Function Code: 03
Start Slavce Memory Address: 40033
Start Master Memory Address: V2033
Number of Elements: K10
MODBUS Data type: 584/984 Mode
Exception Response Buffer: V400
I tried to get this working yesterday but I had some conflicts. My RX LED was on steady, so I did some troubleshooting and found my +/- wires backwards. A quick swap and I was okay... until I tried to poll for some data.
Every time I tried to get data, I had errors. EVERY time. I swapped the port configuration, changed the baud rate, you name it. I gave up and went home for the day.
Today I stopped and asked myself; What is the DEC-550 looking for in the communications cycle? Modbus obviously, 19200 baud, 8N1... I checked the PLC and sure enough, I had not set the "Port 2" to N (default is odd?) and I had not saved the "Port 2" configuration to the PLC. (Dumb mistake!)
A quick change and BINGO! Tx/Rx are blinking like mad, and my PLC is polling the network without errors!
Now all I need to do is figure out how to address the V-memory slots as an input to my analog 0-10 VDC output cards and my relay outputs...
Quick question: Is it proper to setup the "Number of Elements: K10" using the K instead of V10? (V10 changes to TA10 for some reason, and the counters do not show activity... anyone care to explain why?)
Thanks again for the hints, tips, links and suggestions everybody! I appreciate it!
Mark
Last edited: