Serial communication
                
                                    
                                  in RobotStudio             
            
                    Hi!
        
                I´m having a problem when opening an com port in robotstudio and cant figure out what im doing wrong.
What I´m trying to achive is to send information from a vision program and everything is working except the communication
I´m trying to open COM1 whit the following code: 
VAR iodev channel;
VAR num out_buffer{20};
VAR num input;
VAR robtarget target;
Open "COM1:", channel\Bin;
Close channel;
The error code I got is an file open error but i don't want to open a file, i want to open COM1
Please help me with what I´m doing wrong.
                0  
            Comments
- 
            The com port is the com port on the controller and not on the pc (never tried it but don't think it's possible if you aren't on a real controller. And a better solution if possible would be using socket communication over ethernet. Have done that myself against a vision systemPer Svensson
Robotics and Vision Specialist
Consat Engineering0 
Categories
- All Categories
 - 5.6K RobotStudio
 - 401 UpFeed
 - 21 Tutorials
 - 15 RobotApps
 - 306 PowerPacs
 - 407 RobotStudio S4
 - 1.8K Developer Tools
 - 250 ScreenMaker
 - 2.9K Robot Controller
 - 363 IRC5
 - 81 OmniCore
 - 8 RCS (Realistic Controller Simulation)
 - 853 RAPID Programming
 - 31 AppStudio
 - 4 RobotStudio AR Viewer
 - 19 Wizard Easy Programming
 - 110 Collaborative Robots
 - 5 Job listings