AliBahar Posted July 26, 2015 Report Posted July 26, 2015 two computers communicate with each other using DNP3 protocol based on rs232. the PC#1 acts as master and it handles data transmission/reception with citect scada. PC#2 acts as slave and it performs data communication and analysis using C++ console which is created using visual studio. problem:I want to do opening and closing COM port of PC#1 using citect scada software. but I don't know how it can be done?
cmo Posted August 8, 2015 Report Posted August 8, 2015 You can execute external programs using the Cicode command Exec. Maybe you could write a powershell script to open and close the port?
michael G Posted August 9, 2015 Report Posted August 9, 2015 (edited) Cicode using ComOpen http://webhelp.citect.com/vijeo/AutoMerge/CicodeReferenceWeb/content/ComOpen.html and it is possible that you have not given enough information to get the correct answer Why are you wanting to open and close the port? Edited August 9, 2015 by michael G
AliBahar Posted August 13, 2015 Author Report Posted August 13, 2015 because the master must be able to handle link arbitrarily even if it does not want to communicate with slave
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now