RAINBOW ROBOTICS
RB SERIES _ USER MANUAL
© RAINBOW ROBOTICS Inc. All rights reserved.
246
Warning:
The syntax that needs to be followed:
In order to use the Read ASCII Variable, ASCII Array, and String options provided by
the robot manufacturer, the data format received from the server MUST follow the
following format. If a special communication grammar/syntax is required, please
consult with the manufacturer.
Read ASCII Variable
When receiving a value from the server, the value must be sent as a numerical value.
(i.e. the numerical value doesn’t need to be contained within quotation marks)
(e.g. 123, 4567)
Read ASCII Array
When receiving an array from the server, the array doesn’t need to be contained
within quotation marks. In this case, there must be curly braces, and commas must
be present between each number value.
(e.g. {100,200,300}, {400,500,600,700})
Read String
When receiving a string from the server, the string must be inside quotes.
(e.g. “this_is_string_from_server”)
Internal variables to enable socket communication:
The RB series comes with built in variables for users to check information regarding the
status of the sockets, as well as the data coming through those sockets. The internal
variables are shown below. They can be accessed using the Script Function, or some
similar function (i.e. If) that allows a user to access variables. The variables can be
found in the List drop down after selecting Shared Data from the Type drop down menu.
SD_SOCK_IS_OPEN_ # (where # denotes the socket number 0 ~ 4)
A provided variable that stores whether the socket is open or connected to the server.
After a user opens a socket using the Open option in the Socket function, the user
can check if the socket is connected by using If (SD_SOCK_IS_OPEN_#)..
SD_SOCK_LAST_READ_# (where # denotes the socket number 0 ~ 4)
A provided variable that stores the last character that was sent via the socket. It can
be used to check whether the Read function executing normally.
For example, after using the ReadAsciiVariable option in the Socket function, users
can check if the last Read function performed normally by using If
Содержание RB Series
Страница 1: ...RAINBOw English RB SERIES USER MANUAL V 3 9 1 Update 2021 09...
Страница 2: ...RAINBOW ROBOTICS RB SERIES _ USER MANUAL RAINBOW ROBOTICS Inc All rights reserved 2...
Страница 80: ...RAINBOW ROBOTICS RB SERIES _ USER MANUAL RAINBOW ROBOTICS Inc All rights reserved 80 Program only Mode...
Страница 195: ...RAINBOW ROBOTICS RB SERIES _ USER MANUAL RAINBOW ROBOTICS Inc All rights reserved 195...
Страница 206: ...RAINBOW ROBOTICS RB SERIES _ USER MANUAL RAINBOW ROBOTICS Inc All rights reserved 206...
Страница 265: ...RAINBOW ROBOTICS RB SERIES _ USER MANUAL RAINBOW ROBOTICS Inc All rights reserved 265...