7. Connection Procedure
39
7.4.4. Checking the Receive Data
Confirm that the correct data are written to the variables of the Controller with the Sysmac
Studio.
1
Confirm that the online value of
Local_Status.Done
, which
indicates the program execution
status, was changed to True.
*This means the program ended
normally.
*In the case of an error end,
Local_Status.Error
changes to
True. Troubleshoot the error by
referring to step 2.
[Normal end]
[Error end]
2
If the program ended normally,
confirm that each error code is 0.
*If the program ended in an
error, the error code
corresponding to the error is
stored. Troubleshoot the error
by referring to 9.8. Error
Process.
[Normal end]
[Error end]
3
Check the received data (code
that was read) in the Watch
Window of the Sysmac Studio.
*In the example on the right, the
data stored in
Output_RecvMessage
is
4912345678904. It is the same
as the trace data in step 3 of
Section 7.4.3.
*The number of words used to
store the receive data (0008 in
hexadecimal) is stored in
Output_RecvData[0]
. The bar
code data that were read are
stored from
Output_RecvData[1]
to
[7]
. The
number of used words is 8
including
Output_RecvData[0]
.
Receive data (Hex)
• Output_RecvData[0]:”0008”
• Output_RecvData[1]:“3439”
• Output_RecvData[2]:”3132”
• Output_RecvData[3]:”3334”
• Output_RecvData[4]:”3536”
• Output_RecvData[5]:”3738”
• Output_RecvData[6]:”3930”
• Output_RecvData[7]:”3400”
Values of Bar Code (String)
Output_RecvMessage
“4912345678904”
Number of words used to
store the receive data
Eight words from 0 to 7
Содержание V400-R2 Series
Страница 57: ...9 Program 54 3 PMCR communications processing ...
Страница 58: ...9 Program 55 4 Processing number error process ...