Download FlexDC Software User Manual

Transcript
FlexDC Software User Manual
Part III– FlexDC Macro Language
15.3.6 Remote Access over the CAN commands
Table 46 describes the keywords that allow remote CAN access from within an FlexDC
macro program:
Keyword
Description
ZA
Remote Assign parameter. Sends an assignment clause to a remote unit.
The parameter to be assigned is the command's parameter. The value to
assign is taken from the numeric stack (one item removed).
ZC
Remote Command. Sends a command clause to the remote unit. The
command to send is the ZC command’s parameter. The command does not
affect the numeric stack.
ZI[I]
An array parameter. ZI[1] holds the ID address to which the remote
communication addresses (the receive CAN ID address of the remote unit).
ZI[2] holds the ID address to which the remote unit will answer (the CAN ID
address at which the answer is expected).
This array parameter is macro related: XZI[1] is used in macro X, YZI[1] is
used in macro Y...
ZM
Sends a string message (limited to 8 characters) to a pre-defined remote,
CAN ID address, defined by ZI[1] (ZI[2] is ignored). The message to send is
the command’s (string) parameter if ‘ “ ‘ was found , or 1 or 2 (as parameter)
for 1 or 2 (respectively) numbers OFF the numbers stack.
ZR
Remote Report parameter. Sends a report clause to a remote unit. The
parameter to be reported is the command's parameter. The reported value is
pushed to the numeric stack (one item is added to this stack).
ZS
A parameter that holds the status of the last remote unit's response. Can be
only reset to zero.
Table 46: Macro Program Remote CAN Access Commands
Nanomotion Ltd.
312