Difference between revisions of "Operating CODESYS with softMC Guide Line"

From SoftMC-Wiki
Jump to: navigation, search
 
(24 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{Languages|Operating_CODESYS_with_softMC_Guide_Line}}
 +
= CODESYS Installation =
 +
 +
[[File:CODESYS.png|border|800px]]
 +
<br/>
 +
 +
 +
 +
 +
 +
Please contact SERVOTRONIX in order to get the following files:
 +
 +
* '''‘mc-0.4.17.4-C2-MULTIBUS-x86-CODESYS_With_WebVisu.ipk’ -''' contains the firmware upgrade for softMC Multibus CODESYS
 +
* '''‘codesys_drivers_2.ipk’'''
 +
* '''‘softMC_1_0_0_1.compiled-library’'''
 +
* '''‘Configurator_archive_0.4.17.4.bndl’'''
 +
* '''‘SN_UAC.LIB’'''
 +
 +
 +
 +
Please follow the steps below:
 +
 +
 +
 +
=Part 1:=
  
= CODESYS installation instructions: =
 
  
{|[[File:CODESYS.png|70px]]|}
+
1. Open ControlStudio. <br/>
 +
2. Connect to softMC.<br/>
 +
3. Please type in the terminal:<br/>
 +
  <pre>        ?sys.information    </pre>
 +
:Check the ‘Maximum number of axes’.
 +
:Please send a picture of the information.
 +
4. go to:
 +
::Tools -> Firmware Update -> choose 'mc-0.4.17.4-C2-MULTIBUS-x86-CODESYS_With_WebVisu.ipk'
 +
5. During the Firmware Update the MC will reboot twice.<br/>
 +
6. After first installation, please go to:
 +
::Tools -> Firmware Update -> choose 'codesys_drivers_2.ipk'
 +
7. During the Firmware Update the MC will reboot twice.<br/>
 +
 
 +
8. After the process ends, please check the new version by typing in the terminal:
 +
  <pre>        ?sys.information    </pre>
 +
Now you should see (among rest):
 +
* Version number: 0.4.17.4 <br/>
 +
* Features:  CODESYS:0x61131 <br/>
 +
9. Please provide:
 +
* '''Hash number'''
 +
* '''Serial number'''
 +
* '''Maximum number of axes '''(from before the upgrade – after the upgrade it should be zero until installation of the UAC).
 +
10. Once you provide these details, you will receive UAC (User Authorization Code) and further instructions.
 +
 
 +
 
 +
 
 +
=Part 2 (When UAC is provided):=
 +
 
 +
 
 +
1. Open ControlStudio.<br/>
 +
2. Connect to softMC.<br/>
 +
3. Send SN_UAC.LIB to softMC by dragging it into File Manager.<br/>
 +
4.
 +
  <pre>        Loadglobal SN_UAC.LIB </pre>
 +
5. Use the following function ‘?Set_SN_UAC_Files(byval SN_str as string, byval UAC_str as string)' :
 +
  <pre>        ?Set_SN_UAC_Files(“your serial number”, “your UAC”) </pre>
 +
5. Reboot the machine.<br/>
 +
6. Check sys.information to see maximum number of axes.<br/>
 +
  <pre>        ?sys.information    </pre>
 +
 
 +
 
 +
 
 +
* When upgrade is finished, you can use the ControlStudio Configurator to create the XML file (device description file).
 +
:Please use the Configurator training guide in the website.
 +
* In CODESYS: Please install the ‘softMC_1_0_0_1.compiled-library’ into Tools -> Library Repository (one time installation).
 +
* In CODESYS: Please install the device description file (created by the Configurator) into Tools -> Device Repository (when using a new XML file).
 +
 
 +
 
 +
 
 +
=Summary=
 +
 
 +
{| class="wikitable" border="1"
 +
|-
 +
! scope="col"|Task || ! scope="col"| Reference delivered by SERVOTRONIX ||! scope="col"| Status
 +
|-
 +
| Firmware to support CODESYS for softMC EtherCAT || MC FW installation files (.IPK/.ZIP) || '''STX''':  provide FW zip file
 +
'''CUSTOMER''': install  CODESYS Runtime and send:
 +
 
 +
* Serial number
 +
 
 +
* Hash number
 +
 
 +
* max number of axes
 +
 
 +
'''STX''': provide UAC number
 +
|-
 +
| Install ControlStudio with Configurator|| configurator_archive_0.4.17.4.bndl
 +
|| Download from website
 +
|-
 +
|Run Configurator|| User manual: softMC_Configurator_Setup_Training_Rev.1.0.pdf||Download from website
 +
|-
 +
| XML file for Device Repository || || Created by ControlStudio Configurator
 +
|-
 +
|softMC.compiled-library for CODESYS|| softMC_1_0_0_1.compiled-library||Download from website – version 1.0.0.1
 +
|-
 +
|CODESYS examples files for basic operation of softMC w two CDHD|| FLIP_FLOP_FBD.project
 +
FLIP_FLOP_LADDER.project
 +
 
 +
FLIP_FLOP_ST.project
 +
 
 +
LABELING_FBD.project
 +
 
 +
LABELING_LADDER.project
 +
 
 +
LABELING_ST.project
 +
 
 +
MAIN_MOTION_FBD.project
 +
 
 +
MAIN_MOTION_LADDER.project
 +
 
 +
MAIN_MOTION_ST.project
 +
|| Download from website
 +
|}
 +
 
 +
<br/>
 
<br/>
 
<br/>
  
Please download from the link received the following files:
+
=CODESYS - Procedure=
  
* '''‘MC_FW.ZIP’ - contains the firmware upgrade for softMC7 Multibus CODESYS'''
+
Below is a scheme of the procedure for using CODESYS with softMC: <br/>
* '''‘softMC_1_0_0_1.compiled-library’'''
+
<br/>
* '''‘Configurator_archive_0.4.16.7.bndl’'''
+
[[File:Scheme.PNG|550px]]
* ''''‘SN_UAC.LIB’'''
 

Latest revision as of 09:33, 4 March 2018

Language: English  • 中文(简体)‎

CODESYS Installation

CODESYS.png



Please contact SERVOTRONIX in order to get the following files:

  • ‘mc-0.4.17.4-C2-MULTIBUS-x86-CODESYS_With_WebVisu.ipk’ - contains the firmware upgrade for softMC Multibus CODESYS
  • ‘codesys_drivers_2.ipk’
  • ‘softMC_1_0_0_1.compiled-library’
  • ‘Configurator_archive_0.4.17.4.bndl’
  • ‘SN_UAC.LIB’


Please follow the steps below:


Part 1:

1. Open ControlStudio.
2. Connect to softMC.
3. Please type in the terminal:

         ?sys.information    
Check the ‘Maximum number of axes’.
Please send a picture of the information.

4. go to:

Tools -> Firmware Update -> choose 'mc-0.4.17.4-C2-MULTIBUS-x86-CODESYS_With_WebVisu.ipk'

5. During the Firmware Update the MC will reboot twice.
6. After first installation, please go to:

Tools -> Firmware Update -> choose 'codesys_drivers_2.ipk'

7. During the Firmware Update the MC will reboot twice.

8. After the process ends, please check the new version by typing in the terminal:

         ?sys.information    

Now you should see (among rest):

  • Version number: 0.4.17.4
  • Features: CODESYS:0x61131

9. Please provide:

  • Hash number
  • Serial number
  • Maximum number of axes (from before the upgrade – after the upgrade it should be zero until installation of the UAC).

10. Once you provide these details, you will receive UAC (User Authorization Code) and further instructions.


Part 2 (When UAC is provided):

1. Open ControlStudio.
2. Connect to softMC.
3. Send SN_UAC.LIB to softMC by dragging it into File Manager.
4.

         Loadglobal SN_UAC.LIB 

5. Use the following function ‘?Set_SN_UAC_Files(byval SN_str as string, byval UAC_str as string)' :

         ?Set_SN_UAC_Files(“your serial number”, “your UAC”) 

5. Reboot the machine.
6. Check sys.information to see maximum number of axes.

         ?sys.information    


  • When upgrade is finished, you can use the ControlStudio Configurator to create the XML file (device description file).
Please use the Configurator training guide in the website.
  • In CODESYS: Please install the ‘softMC_1_0_0_1.compiled-library’ into Tools -> Library Repository (one time installation).
  • In CODESYS: Please install the device description file (created by the Configurator) into Tools -> Device Repository (when using a new XML file).


Summary

Task Reference delivered by SERVOTRONIX Status
Firmware to support CODESYS for softMC EtherCAT MC FW installation files (.IPK/.ZIP) STX: provide FW zip file

CUSTOMER: install CODESYS Runtime and send:

  • Serial number
  • Hash number
  • max number of axes

STX: provide UAC number

Install ControlStudio with Configurator configurator_archive_0.4.17.4.bndl Download from website
Run Configurator User manual: softMC_Configurator_Setup_Training_Rev.1.0.pdf Download from website
XML file for Device Repository Created by ControlStudio Configurator
softMC.compiled-library for CODESYS softMC_1_0_0_1.compiled-library Download from website – version 1.0.0.1
CODESYS examples files for basic operation of softMC w two CDHD FLIP_FLOP_FBD.project

FLIP_FLOP_LADDER.project

FLIP_FLOP_ST.project

LABELING_FBD.project

LABELING_LADDER.project

LABELING_ST.project

MAIN_MOTION_FBD.project

MAIN_MOTION_LADDER.project

MAIN_MOTION_ST.project

Download from website



CODESYS - Procedure

Below is a scheme of the procedure for using CODESYS with softMC:

Scheme.PNG