beautypg.com

Serial read byte, B.5.3 serial read byte – Nematron Pointe Controller User Manual

Page 326

background image

Appendix B: Flow Chart Command Reference

Pointe Controller User Guide

324

B.5.3 Serial Read Byte

This command can be selected from the

Serial commands

list.

When used in a Flow Chart, the Serial Read Byte command reads a single
byte/character from the specified COM port and saves it to a Logic Memory tag.

NOTE: If you need to convert the read byte into an ASCII character, you can use
the

Integer to Character

ladder block.

Parameters for this command include:

COM Port – Specify which serial communications port to read from. For
more information on how the ports are numbered, see page 321.

The value of COM Port may be an Input/Memory/Output tag, a literal
numeric value, or some other logical expression that is evaluated every
time the block is executed.

To configure the COM Port parameter, click the

button to open a

standard

Build Argument

dialog.

Destination Tag – The tag to which the read byte will be saved.

The value of Destination Tag may be any 8-bit Unsigned tag (%IUB,
%MUB, or %QUB).

To configure the Destination Tag parameter, click the

button to open a

standard

Select Tag

dialog.

Status Tag – The Serial Read Byte command checks for a communication
error at the time of command execution. The Status Tag is the tag to
which the error code, if any, is saved. For more information on
interpreting error codes, see “

Serial Get Comm Errors

” on page 328

.

The value of Status Tag may be any 16-bit Unsigned tag (%IUW, %MUW,
or %QUW).

To configure the Status Tag parameter, click the

button to open a

standard

Select Tag

dialog.