Step 5: Debug and monitor the program
1)In menu, selecet "Online"→"Log on to..." to connect application program with LC-C06 and
enter online status. Then select in menu "Debug"→"Activate" to run application program in
LC-C06.
2)Program debugging
Read values like current position, speed of motor through commands like HSC_GETCV,
HSC_GETSPEED of program.
7.3
HSC Interrupt example
1. Configure in CODESYS
Double click desktop icon
1)Create a new project
⚫ In menu bar of CODESYS main page, select "file"→"create new project", then select
"standard project" in pop up dialog and set file name and storage directory.
⚫ After above operations and confirmation, select added CPU file device (MAT-LC-C06_V1.0)
and selected program language in pop up dialog, click "confirm" to finish the project
creation.
⚫ In device directory, right click "<blank><blank>" under "CPU Local IO", select "Insert device"
and in pop-up dialog, select supplier as "SMB", select "Local IO" and click "Insert device" button
to add the device, which will be finally displayed under CPU Local IO.
or start CODESYS in menu of START, then operate as below:
105
Need help?
Do you have a question about the MAT-LC-C Series and is the answer not in the manual?