There are a few ways to write to an IO address with YMConnect. This code will focus on writing a byte to an IO address. For more ways, visit https://developer.motoman.com/en/YMConnect/IoInterface
This code is the same for Windows or Linux.
#include "YMConnect.h"
void main()
{
StatusInfo status{};
auto c = YMConnect::OpenConnection("192.168.1.31", status);
status = c->Io->WriteByte(10010, 0xFF);
YMConnect::CloseConnection(c);
}
Comments
0 comments
Please sign in to leave a comment.