How do I write axis variables or VR integer values into the channel?
Like this? CHANNEL_WRITE(tcpserver_channel, " " + TIME$ + " " + CHR(VR(0)) + " " + CHR(VR(1)) )
Answer:
No, the CHANNEL_WRITE needs to have a string as the data to write.
CHANNEL_WRITE(tcpserver_channel, " " + TIME$ + " " + STR(VR(0), 0) + " " + STR(ENCODER AXIS(0)))
STR(VR(0), 0) means the value of VR(0) with 0 characters after the decimal point.