7
.
Serial Communications Connection Procedure
31
4
Select
Watch Tab Page
from
the View Menu.
5
Select the
Watch (Project)1
Tab.
6
Check that the variables shown
on the right are displayed in the
Name
Column.
*Click
Input Name
to add a
variable.
7
Check that the display format of
Output_recvByteSize
is
Decimal.
*If not, select
Decimal
from the
pull-down list.
8
Click
TRUE
in the
Modify
Column for
Input_Start
.
The online value of
Input_Start
changes to True, and the
communications processing
starts.
9
Check received data on the
Watch Tab Page of Sysmac
Studio.
*The example on the right shows
that the online values of
Output_recvByteSize
(the
number of data bytes) and
Output_recvCWFdata
(string
data) are 28 bytes and “01 00
00 0503 0000 E5CD-RX2A6
00D9”, respectively.
The response data varies
depending on the device used.
Response data
01= Node No.
00= Subaddress
00= End code
0503= Command (MRC, SRC)
0000= Response (MRES, SRES)
E5CD-RX2A6 = Receive data (Controller Attributes)
00D9 = Buffer size
・・・
Communications start switch
String data
The number of data bytes