Hello
i need your help. I would like to write a URCap. In this URCap i have the problem i musst set a Digitalout when i click a Button.
My Question is how can i set a Digital out to true?
I have test it with the scriptcommunicator, but when the Robot is in Power off the Script doesn’t run.
Is there a other option to do this, maybe about the RTDE to write a outputstream?
For example I read about the Robot Real Time Reader the Robot mode.
Is there an example?
Thanks for your help
fujikit
September 22, 2021, 9:28am
2
It is possible by using realtime client.
This example is for gp output.
package com.takaaki.urcap.eipmonitor.impl.realtime;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
public class RealTimeClient {
private String MESSAGE_HEADER = "Client -> port30003:";
private String ipAddress;
public RealTimeClient(String ipAddress) {
this.ipAddress = ipAddress;
}
public void setBitToRegister(int addr, boolean bit) {
String command = "write_output_boolean_register(" + String.valueOf(addr) + ","
This file has been truncated. show original
Thank you i will test it and reporting back.
Hello
I have test this but the same problem, i can send the command but only when the robot is power on.
I musst set a digital out when the robot is in mode Power off.
can you help me?
Thanks in advance
fujikit
September 22, 2021, 1:19pm
5
I think that it doesn’t have to be possible to turn outputs under powering off for security.
I am in the process of testing / verifying this method, and so far it seems to work as desired.
Hello
thank you for your fast replay.
But I have a question, where you get the IOHandler?
I don’t find this class!
Thanks a lot.
My bad I forgot to add the class.
It’s under the manipulateIO example.
Thanks
I will test it and inform you back.
I don’t find this in my SDK. Can you help me?
I have found it to download.
Is is running.
Thank you very much.
1 Like