5/27/2009 9:24 PM | |
Joined: 12/22/2006 Last visit: 1/25/2022 Posts: 1742 Rating:
|
Hello, To monitor the traffic between the CPU and the scanner you need 1) either a hub, or a switch where you can activate the monitoring of a port. A scalance X208 for instance could do the job (in the switch menu you will find the monitring function) 2) a PC with a freeware like wireshark (see www.wireshark.org) that you connect o the hub or the monitoring port of the switch. You could also try the value 0 for the parameter LEN of the TRCV. LEN = 0 has the following meaning: - the data are available immediately After being received, a data block is immediately available in the receive buffer. The amount of data received (RCVD_LEN parameter) can be no greater than the size specified in the DATA parameter. Receiving is indicated by NDR = 1. |
Last edited by: edr at: 5/27/2009 9:26 PMBest regards |
|
5/28/2009 11:34 AM | |
Joined: 5/4/2009 Last visit: 11/23/2023 Posts: 2 Rating:
|
Hi, I don't have that kind of a switch at hand. So that is a lost cause. I'm using 0 in TRCV's LEN. The data pointer defines the receive message's db and area length. RCVD_LEN is set to 0. As I said, eight other commands work fine with the same communication program block, but this one doesn't. The only reason then is the command itself and it being incorrect some way. But you can not help me with that problem.. Thanks for the help, the problem is not in the communication then. Br, Jusbe
|
Follow us on