|
Currently I have the pick to light device plugged into COM port 7 of my PC via USB.
I am then using demo version of TCP-Com software to allow my PC to act as a server to which my Socket Client program on the Iseries can connect to and communicate with.
I am using the CLIENTEX1 tutorial program as a base for my personal socket client program with the major changes being no entry parameters and no receiving of data (For now I simply want to write to a single register and get something to happen on the device).
When I run my program I have confirmed that the connection is established and program runs all the way from beginning to end but nothing is actually happening with the device.
I believe the issue is with what I am sending (request variable) and I'm unsure if I should even be performing translations to ASCII as well.
Below is a sample of my program with further details. Does anyone have any experience with this and can provide me with more direction?Sorry, I have no idea what "16 bit input register 6302" is. Again, this sounds device-specific. See above.
I would like to send the value 1 to 16 bit input register 6302. My slave ID should be default 1.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.