Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
anderssandstrom committed Sep 12, 2024
1 parent 8484d54 commit c311cd4
Show file tree
Hide file tree
Showing 11 changed files with 54 additions and 19 deletions.
9 changes: 8 additions & 1 deletion hugo/content/manual/PLC_cfg/_index.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
+++
title = "PLC"
weight = 15
weight = 12
chapter = false
+++

***
## Topics
{{% children %}}
---

## PLCs

In `ECMC`, PLCs are a very powerful tool to handle EtherCAT data in real-time.

Since `ecmccfg` v7, the PLCs can be instantiated in 3 different ways:
Expand Down
7 changes: 4 additions & 3 deletions hugo/content/manual/PLC_cfg/function_libs.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ weight = 17
chapter = false
+++

## function libs
Function libraries can be loaded into ecmc PLCs by loadPLCLib.cmd. The command takes these parameters:
* FILE PLC: definition file, i.e. ./plc/homeSlit.plc
* PLC_ID: (optional) PLC number, default last loaded PLC
Expand All @@ -17,19 +18,19 @@ Function libraries can be loaded into ecmc PLCs by loadPLCLib.cmd. The command t
* PRINT_PLC_FILE: (optional) 1/0, printout msi parsed plc file (default enable(1)).

Example:
```
```bash
${SCRIPTEXEC} ${ECMC_CONFIG_ROOT}loadPLCLib.cmd, "FILE=./plc/test.plc_lib, PLC_MACROS='OFFSET=3'"
```

The functions must be defined accordning to this template (max 5 parameters):
```
```C
function <name>(<param1>,...,<param5>) {
<code body>;
}
```

also without param is allowed:
```
```C
function <name>() {
<code body>;
}
Expand Down
8 changes: 4 additions & 4 deletions hugo/content/manual/general_cfg/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ weight = 7
chapter = false
+++

## [startup.cmd](startup)
## [data storage](data_storage)
## [iocsh utils](iocsh_utils)
## [ecmc command reference](ecmc_command_ref)
***
## Topics
{{% children %}}

9 changes: 8 additions & 1 deletion hugo/content/manual/motion_cfg/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
title = "motion"
weight = 10
chapter = false
+++
+++

***

***
## Topics
{{% children %}}
---

## axis

Expand Down
8 changes: 6 additions & 2 deletions hugo/content/manual/troubleshooting/_index.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
+++
title = "troubleshooting"
weight = 11
weight = 15
chapter = false
+++

## troubleshooting
***
## Topics
{{% children %}}
---

## troubleshooting
Due to the complexity an EtherCAT bus topology can assume, troubleshooting can be challenging.
This guide should provide the basic means to diagnose simple errors and is by no means complete!

Expand Down
2 changes: 2 additions & 0 deletions hugo/content/manual/troubleshooting/ethercatCLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ weight = 13
chapter = false
+++

***

### `ethercat` CLI

The IgH EtherCAT master provides a command line interface (CLI) which is a very powerful tool.
Expand Down
2 changes: 2 additions & 0 deletions hugo/content/manual/troubleshooting/general.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ weight = 12
chapter = false
+++

***

### culprit

From experience, very few issues are related to the EtherCAT hardware itself.
Expand Down
11 changes: 7 additions & 4 deletions hugo/content/manual/troubleshooting/hardware.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ weight = 16
chapter = false
+++

### 1. [over current protection](#over current protection)
### 2. [el7041 error/warning](#el7041 error/warning)
### 3. [latency issues](#latency issues)

***
***
## Topics
1. [over current protection](#over current protection)
2. [el7041 error/warning](#el7041 error/warning)
3. [latency issues](#latency issues)
---
### over current protection
In the standard setup at PSI over current protection modules are used to feed 24V to both the ethercat communication bus (E-bus) and the power bus of the ethercat slaves. If the over current protection is not enabled then the ethercat slaves will not receive power.

Expand Down
2 changes: 2 additions & 0 deletions hugo/content/manual/troubleshooting/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ weight = 17
chapter = false
+++

***

## force manual motion
{{% notice warning %}}
This procedure is for experts only. You run the risk of destroying expansive devices! Limit switches are _not_ obeyed! YOU HAVE BEEN WARNED!
Expand Down
13 changes: 9 additions & 4 deletions hugo/content/manual/troubleshooting/motion.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@ weight = 14
chapter = false
+++

### 1. [both_limits error](#both_limits error)
### 2. [position lag error, (following error), tuning](#position lag error (following error))
### 3. [latency issues](#latency issues)
### 4. [drive refuse to enable](#drive refuse to enable)
***

## Topics
1. [both_limits error](#both_limits error)
2. [position lag error, (following error), tuning](#position lag error (following error))
3. [latency issues](#latency issues)
4. [drive refuse to enable](#drive refuse to enable)

---

## both_limits error
The "BOTH_LIMITS" error can be related to that limits switches are not powered with 24V. As standard at PSI, limts are feed from 24V outputs, normally an EL2819 terminal. Basically the ouptputs needs then to be set to 1 in order to power the switches. Check the schematics in order to find out which output that powers the switches for a certain axis and then use one the following approaches to set it to 1:
Expand Down
2 changes: 2 additions & 0 deletions hugo/content/manual/troubleshooting/tuning.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ weight = 15
chapter = false
+++

***

### EL70x1 Tuning

For EL70x1 stepper drives the following parameters can be tuned:
Expand Down

0 comments on commit c311cd4

Please sign in to comment.