Self Addressed Commands And Queries; Robocan Via Microbasic Scripting; Sending Commands And Configuration - RoboteQ CANBus Series User's Reference Manual

Table of Contents

Advertisement

Self Addressed Commands and Queries

For sake of consistency commands sent to the local node number are executed the same
way as they would be on a remote node. However the no CAN frame is sent to the net-
work. For example if node 04 receive the command
@04!G 1 500
No data will be sent on the network and it will be interpreted and executed the same way as
!G 1 500

RoboCAN via MicroBasic Scripting

A set of functions have been added to the MicroBasic language in order to easily send
commands to, and read data from any other node on the network. Functions are also
available to read and write configurations at a remote node. Maintenance commands are
not supported.

Sending Commands and Configuration

Sending commands or configuration values is done using the functions
SetCANCommand(id, cc, ch, vv)
SetCANConfig(id, cc, ch, vv).
Where:
id is the remote Node Id in decimal
cc is the Command code, eg _G
ch is the channel number. Put 1 for commands that do not normally require a channel
number
vv is the value
Example:
SetCANCommand(04, _G, 1, 500)
Will apply 50% power to motor 1 of node 4
SetCANConfig(0, _OVL, 1, 250)
RoboCAN via MicroBasic Scripting
CANBus Networking Manual
21

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CANBus Series and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

MinicanCanopenRawcanRobocan

Table of Contents