beautypg.com

Basic programming guide – Remote Processing BASIC for the CX-10 Modbus User Manual

Page 81

background image

BASIC PROGRAMMING GUIDE

2-72

XBY

Syntax:

XBY(addr)
XBY(addr)=expr
Where: addr = 0 to 65535 (0FFFFH) is a memory address

expr = 0 to 255 is data to save

Function:

Read/write external data memory, segment 0 only.

Mode:

Command, run

Use:

XBY(99)=35

DESCRIPTION

XBY retrieves or assigns a value to external data memory. This command is equivalent to PEEKB and
POKEB.

RELATED

CBY, DBY, PEEKB, POKEB

ERROR

BAD ARGUMENT Invalid addr or attempt to assign an out of range value to a XBY(expr).

EXAMPLE

100

XBY(47536) = XBY(47536) .OR. 3