10-06-2006
08:13 AM
- last edited on
01-22-2008
08:56 AM
by
Support
10-06-2006 10:26 AM - edited 10-06-2006 10:26 AM
Message Edited by Khalid on 10-06-2006 09:27 AM
10-09-2006 08:25 AM
10-09-2006 05:41 PM
10-10-2006 08:54 AM
10-10-2006 10:47 AM
Current Software:
Labview 8.20 Professional
MAX 4.1.0.3001
NISPY 2.4.0.49152
VISA 4.0
I am attempting to use the MB Serial Example Master and the MB Serial Example Slave to do some testing as per your suggestion.
I am also making the assumption that the crossover cable is 'technically' an RS232 Null modem WITHOUT HANDSHAKING where the DSUB 9 is wired (Pin 2 to Pin 3, Pin 3 to Pin 2, and Pin 5 to Pin 5)
(is this correct?)
The computer that I am using does not have RS232 ports, so I
am using (2) Belkin 5FU409-CU (USB to Serial Adapters).
MAX shows that both are VALIDATED and working fine with the following
settings: Baud: 9600, Bit=8, Parity =
NONE, Stop Bits=2, Flow = None ... one device is on COM4, the other is on COM5
When I open up and follow the directions according to the example for the MB Serial Example Master / Slave (COM4=Slave, COM5=MASTER)... nothing happens.
each of the Belkin USB to Serial adapters has LEDs which indicate LINK, TX, and RX.... the LINK lights are constant ON.
When I change the Masters Register to write to all 1s and then toggle one of the coils to write switch there is no change to the slave registers or visa versa. About every 10s the COM5 shows a TX and the COM4 shows an RX regardless of me toggling the switches or not.
I ran NI SPY to try to capture what was going on when the RX TX goes at some oddball interval that is not consistent with me toggling one of the coils to write switch......
90% of the time it is just:
1759. VISA Get Attribute ("COM5", ASRL_AVAIL_NUM, 0) Process ID: 0x00000E90 Thread ID: 0x00000CCC Start Time: 11:33:13.943 Call Duration 00:00:00.000 Status: 0 (VI_SUCCESS)
and when the TX light goes on:
1761. VISA Get Attribute ("COM5", ASRL_BAUD, 9600) Process ID: 0x00000E90 Thread ID: 0x00000CCC Start Time: 11:33:14.023 Call Duration 00:00:00.000 Status: 0 (VI_SUCCESS)
1762. VISA Write ("COM5", "........~.") Process ID: 0x00000E90 Thread ID: 0x00000CCC Start Time: 11:33:14.023 Call Duration 00:00:00.000 Status: 0 (VI_SUCCESS)
Any suggestions or comments, or explanations would be great.
Thank you for your time in this matter,
JQM
10-10-2006 05:59 PM
10-10-2006 06:24 PM
10-10-2006 10:16 PM
Hello jqm,
I am sorry to catch your post this late - I usually check the boards fequently but haven't for a few days... Anyway, I am an engineer at Despatch Industries that has created PC software products to monitor & control the Protocol Plus controllers used in many Despatch ovens.
I do not intend to advertise our products here, be we have given free support in the past to customers trying to write communication programs for the Protocol Plus, including code examples in LabView and Visual Basic. These examples demonstrate using the MODBUS RTU protocol as you might like to use it.
I would recommend contacting Despatch service (again?) through the 800 number stuck somewhere on the oven and explain what you need, they will probably have you talk to me & I can send you the code examples if you want. Be sure to mention that you would like LabView examples. I don't think I was involved with your previous contacts with Despatch.
I hope I can assist you if you still need help.
Brian
10-11-2006 07:32 AM