Step 4: Conigure in CODESYS
In device of directory, right click "SMB LocalBus" and select "Add device", then in pop-up dialog,
select supplier as "SMB", select "Specialized device Interface 8 Slot", then click "Add device" to
add the device, which will be displayed under SMB LocalBus. At last, select added INT_00 and
right click to select "Add device" and select HSC-02 device.
<Remark> Double click device HSC-02 to open its property dialog and configure mode, control
word and other parameters of the module. If set here, then commands of HSC_300,
HSC_SETMODE will not be needed.
Step 5: Run the drive system.
Set parameters of SMB servo driver to run the motor, refer to <SMB Series AC Servo Driver User
Manual> for more detailes.
Step 6: Add library file Extbus Library
Install library file through "Tools"→"Library" in menu.
After library file is installed correctly, a dialog will pop up to remind. Add the new library to library
manager according to below steps:
1)Open library manager in device directory: PLC→Application→Library manager
2)In library manager interface, click
to add library SMB_ExtBus_V1.3.library
Step 7: Program through Extbus library
After library file of HSC-02 is correctly added, information like module speed, position and status
can be read through commands.
<Remark> HSC_300、HSC_SETMOD。If parameters like control word, mode are configured in
property dialog of HSC-02, HSC_300, HSC_SETMODE commands are not needed.
Step 8: 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.
<Remark> Refer to G ExtBus Library Introduction for details of Extbus library.
97
Need help?
Do you have a question about the MAT-LC-C Series and is the answer not in the manual?