
"can_quit" command: register OK!
"setState" command: register OK!
"showPdo" command: register OK!
"requestPdo" command: register OK!
"sdo" command: register OK!
"" command: register OK!
"test_startM" command: register OK!
"test_sdoSingle" command: register OK!
"test_sdoSingleW" command: register OK!
"test_sdoBlock" command: register OK!
"test_showPdoCyc" command: register OK!
"test_showpdoreq" command: register OK!
"test_requestpdo" command: register OK!
b. There are nine test codes in total, tests 1 to 9. Test code details are shown in the test log.
• Test code log “---test---” indicates that the test code begins.
• Firstly, the execution rights of the SDO and PDO protocol are explained.
• The tests 1~4 are SDO protocol test codes. After starting the CANopen master node, it automatically enters
into initialization and pre-operation mode.
• The test5 is a test code that master node enters the operation mode and starts all slave nodes.
• The tests 6~9 are PDO protocol test codes.
Test Code Log
:
------------------------- test ---------------------------
Note: Test code start execute...
SDO protocol is valid in preoperation mode, but PDO protocol is invalid!
SDO and PDO protocol are both valid in operation mode!
Console is invalid when testing!
----------------------------------------------------------
Note: test1--Read slave node single data by SDO.
Note: master node initialization is complete!
Note: master node entry into the preOperation mode!
Note: Alarm timer is running!
Note: slave node "0x02" entry into "Initialisation" state!
----------------------------------------------------------
Note: test2--Write 0x2CD5 to slave node by SDO.
Note: Master write a data to 0x02 node successfully.
----------------------------------------------------------
Note: test3--Read slave node single data by SDO again.
Note: reveived data is 0x2CD5
----------------------------------------------------------
Note: test4--Read slave node block data by SDO.
---------------- text ------------------
Note: reveived string ==>
CANopen is a CAN-based communication system.
It comprises higher-layer protocols and profile specifications.
CANopen has been developed as a standardized embedded network with highly flexible
configuration capabilities.
It was designed originally for motion-oriented machine control systems, such as handling
systems.
Today it is used in various application fields, such as medical equipment, off-road
vehicles, maritime electronics, railway applications, or building automation.
----------------------------------------
----------------------------------------------------------
Note: test5--Master node entry operation mode, and start slave nodes!
Note: master node entry into the operation mode,and start all slave nodes!
NXP Semiconductors
FlexCAN
Open Industrial User Guide, Rev. 1.8, 05/2020
User's Guide
174 / 199