Serial write byte, B.5.4 serial write byte – Nematron Pointe Controller User Manual

Page 327

Advertising
background image

Pointe Controller User Guide

Appendix B: Flow Chart Command Reference

325

B.5.4 Serial Write Byte

This command can be selected from the

Serial commands

list.

When used in a Flow Chart, the Serial Write Byte command writes a single
byte/character (as defined in the Build Argument dialog) to the specified COM
port.

NOTE: String characters are automatically converted into their equivalent ASCII
values.

Parameters for this command include:

COM Port – Specify which serial communications port to write to. 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.

Source Char – The byte/character that will be written to the COM port.

The value of Source Char may be an Input/Memory/Output tag, a String
variable, a literal numeric value, a literal string enclosed in single quotes (‘
’), or some other logical expression that is evaluated every time the block
is executed. If the given value is more than one byte long, then only the
first byte will be written.

To configure the Source Char parameter, click the

button to open a

standard

Build Argument

dialog.

Status Tag – The Serial Write 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).

Advertising