There are a few ways to read IO with YMConnect. This code will focus on reading a byte from 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);
IOByteData value{};
status = c->Io->ReadByte(10010, value);
YMConnect::CloseConnection(c);
}
Comments
0 comments
Please sign in to leave a comment.