I was just wondering if anyone knows what the 6 user bytes and the user warning, error and command bytes are for. I’ve looked around and I haven’t been able to figure out what they’re used for. If anyone knows what they’re for, I’d really appreciate the help.
BTW, I’m new to these forums so I hope I’m posting this in the right place.
The 6 user bytes can be set in the program to be fed back to the Operator Interface. The first user byte (default p1_y) can be viewed on the OI by switching it to user mode. I don’t know any of the details about the error, or warning, or USER CMD bytes.
Welcome to the forums! Programming is a good place to put a question like this. It also could be put in the Control System Section.
I was going to put this in a new thread, but is discussed a little here. Could someone explain how to use the 6 user bytes please(without messing up my pwm outputs)?
I believe the user bytes are called by 'user_bytex" where x is 1 to 6. So you use it the same as a pwm, or you can break it up into it’s bits, but I’m not sure how to do that off the top of my head, and I don’t have the program loaded up anywhere to double check quickly.
For example, if you want a user byte to show the analog pressure switch, something like this would work…
user_byte1 = analog_pressure;
Of course, the analog inputs are 10 bits, instead of 8 bits, so that screws you up, and I haven’t found a good way to get around that yet… :-\