Communicate with a RS232 device in my RPG program

5 pts.
Tags:
AS/400
Electronic Data Interchange
iseries v5r4
RPG Program
RPGLE
I need to retrieve the weight from a scale hooked to my PC with via RS232. I need to send the device a character(P) and which will trigger the scale to send back the weight. Thanks.

Answer Wiki

Thanks. We'll let you know when a new response is added.

IIRC, this is little more than <a href=”http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=/rzajt/rzajtasync.htm”>Asynchronous communications</a> programming with <a href=”http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=/rzasc/sc092507446.htm”>ICF (Intersystem Communications Function)</a> files.

You use a V.24 comm port (Physical interface *RS232V24), e.g., the old ECS comm port. I think you need to use the IBM cable in order for the system to recognize that something is attached, and connect your RS-232 to the end of that cable — or build your own cable to satisfy the IBM pin-out requirements.

(All of that is ages old.)

You might be better off if you get a RS-232-TCP/IP converter. Then use sockets to do the communications.

Tom

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following