
adccommunitymod (AutomationDirect) asked a question.
Created Date: January 27,2010
Created By: PLC_user
**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****
Greetings, I am trying to interface to a PC using the DirectLogic D0-06DD, and things are not going well using the AIN instruction on port 2, which is configured correctly. Serial data can be sendt out fine with the printv instruction. However, the AIN instruction never sets the complete flag, even though the received bytes count gets set and the data arrives at the destination. This is driving me insane. Any suggestions?
Created Date: January 27,2010
Created by: bcarlton
Make sure there is a LOT of time in the device which receives a prompt (I assume) from the DL06 before sending a response. The DL06 isn't really designed for quick send-then-receive sequences. So DL06 sends a propmpt using the PRINTV instruction. The end device receives it ... waits ... waits some more ... THEN sends back a response. which is received by the AIN. Wait about half this time in the DL06 after sending the PRINTV before enabling the AIN. Experiment. You should find an optimal timing. If you still have problems look up using the BASIC module. It is much better at this sort of thing.
Created Date: January 27,2010
Created by: PLC_user
Greetings,
I am trying to interface to a PC using the DirectLogic D0-06DD, and things are not going well using the AIN instruction on port 2, which is configured correctly.
Serial data can be sendt out fine with the printv instruction.
However, the AIN instruction never sets the complete flag, even though the received bytes count gets set and the data arrives at the destination.
This is driving me insane.
Any suggestions?