Compare commits

...

3 Commits

Author SHA1 Message Date
5220019e7f manual 2026-07-10 12:13:32 +02:00
83fc751305 podlaczone i test 2026-07-10 11:59:03 +02:00
53846c68a0 obecna konfiguracvja lpt 2026-07-10 11:58:41 +02:00
9 changed files with 1376 additions and 0 deletions

819
7i92tman.md Normal file
View File

@@ -0,0 +1,819 @@
# Mesa 7I92T Ethernet Anything I/O Manual
**Version 1.4**
---
## Table of Contents
1. [General Description](#general-description)
2. [Hardware Configuration](#hardware-configuration)
- [Connector 5V Power](#connector-5v-power)
- [5V I/O Tolerance](#5v-io-tolerance)
- [Pullup or Pulldown Selection](#pullup-or-pulldown-selection)
- [IP Address Selection](#ip-address-selection)
3. [Connectors](#connectors)
- [Connector Locations and Default Jumper Positions](#connector-locations-and-default-jumper-positions)
- [I/O Connectors Pinout](#io-connectors-pinout)
- [Power Connector Pinout](#power-connector-pinout)
- [JTAG Connector Pinout](#jtag-connector-pinout)
- [Frame Ground Connection](#frame-ground-connection)
4. [Operation](#operation)
- [FPGA](#fpga)
- [IP Address Selection Details](#ip-address-selection-details)
- [Host Communication](#host-communication)
- [UDP](#udp)
- [LBP16 Protocol](#lbp16-protocol)
- [Windows ARP Issues](#windows-arp-issues)
- [FPGA Configuration](#fpga-configuration)
- [Fallback Configuration](#fallback-configuration)
- [EEPROM Layout (M25P16)](#eeprom-layout-m25p16)
- [Bitfile Format](#bitfile-format)
- [Mesaflash Utility](#mesaflash-utility)
- [Free Flash Memory Space](#free-flash-memory-space)
- [Fallback Indication](#fallback-indication)
- [Failure to Configure](#failure-to-configure)
- [Clock Signals](#clock-signals)
- [LEDs](#leds)
- [Pullup/Pulldown Resistors](#pulluppulldown-resistors)
- [I/O Levels](#io-levels)
- [Startup I/O Voltage](#startup-io-voltage)
- [Interface Cables](#interface-cables)
- [Breakout Power Option](#breakout-power-option)
- [Plug and Go Kits](#plug-and-go-kits)
5. [Supplied Configurations](#supplied-configurations)
- [HostMot2 Firmware](#hostmot2-firmware)
- [Standard Configurations](#standard-configurations)
- [Pin Files](#pin-files)
6. [Reference Information](#reference-information)
- [LBP16 Protocol Detail](#lbp16-protocol-detail)
- [Info Area](#info-area)
- [Info Area Access](#info-area-access)
- [Supported Memory Spaces](#supported-memory-spaces)
- [ELBPCOM Python Script](#elbpcom-python-script)
7. [Specifications](#specifications)
8. [Card Drawing](#card-drawing)
---
## General Description
The **MESA 7I92T** series cards are low-cost, general-purpose, FPGA-based programmable I/O cards with a 100BaseT Ethernet host connection. The 7I92T series cards are available with three connector options:
* **7I92TF**: Female DB25 plus 26-pin header
* **7I92TM**: Male DB25 plus 26-pin header
* **7I92TH**: Two 26-pin headers
*In the remainder of this document, all 7I92T models will be referred to as "7I92T".*
The 7I92T cards use standard parallel port pinouts and connectors for compatibility with most parallel port-interfaced motion control / CNC breakout cards, multi-axis step motor drives, allowing a motion control performance boost while retaining a reliable real-time Ethernet interface. Unlike the parallel port that the 7I92T replaces, each I/O bit has individually programmable direction and function.
The 7I92T cards have a simplified UDP host data transfer system that allows operation in real time and compatibility with standard networks. 7I92T cards provide 34 I/O bits (17 per connector). All I/O bits are 5V tolerant and have pullup or pulldown resistors. A power source option allows the 7I92T to supply 5V power to breakout boards if desired.
Firmware modules are provided for:
* Hardware step generation
* Quadrature encoder counting
* PWM generation
* Digital I/O
* Smart Serial remote I/O
* BISS, SSI, SPI, UART interfaces, and more
Configurations are available that are compatible with common breakout cards and multi-axis step motor drives like the Gecko G540 and Leadshine MX3660/4660. All motion control firmware is open source and easily modified to support new functions or different mixes of functions.
In addition to standard parallel port breakouts, there are currently six 7I92T-compatible breakout cards available from Mesa: the 7I74 through 7I78, and 7I85.
* **7I76**: A step/dir oriented breakout with 5 axes of buffered step/dir outputs, 1 spindle encoder input, 1 isolated 0-10V analog spindle speed plus isolated direction/enable outputs, 1 RS-422 expansion port, 32 isolated 5-32V inputs, and 16 isolated 5-32V 300 mA outputs.
* **7I77**: An analog servo interface with 6 encoder inputs, 6 analog ±10V outputs, 1 RS-422 expansion port, 32 isolated 5-32V inputs, and 16 isolated 5-32V 300 mA outputs.
The 7I92T supports two breakout cards, meaning for example a 10-axis step/dir configuration or a 12-axis analog servo configuration is possible with a single 7I92T and two Mesa breakout cards.
---
## Hardware Configuration
### General
Hardware setup jumper positions assume that the 7I92T card is oriented in an upright position, that is, with the Ethernet connector towards the left and the I/O connectors towards the right.
### Connector 5V Power
The 7I92T has the option to supply 5V power to the breakout board. This option is used by all Mesa breakout boards to simplify wiring. The option uses 4 parallel cable signals that are normally used as grounds for supplying 5V to the remote breakout board (DB25 pins 22, 23, 24, and 25). These pins are AC-bypassed on both the 7I92T and Mesa breakout cards, so they do not compromise AC signal integrity.
The 5V power option is individually selectable for each of the two I/O connectors. This option should only be enabled for Mesa breakout boards or boards specifically wired to accept 5V power on DB25 pins 22 through 25. When the option is disabled, DB25 pins 22 through 25 are grounded.
* **Jumper W3** sets the power option on header P1.
* **Jumper W4** sets the power option on DB25 connector P2.
| Jumper | Position | Function |
| :--- | :--- | :--- |
| **W3, W4** | **UP** | Breakout power enabled |
| **W3, W4** | **DOWN** | Breakout power disabled (Default) |
> [!WARNING]
> Only enable the breakout power option when using compatible daughtercards. Enabling this on standard parallel port devices not designed for 5V power on ground pins can cause damage.
### 5V I/O Tolerance
The FPGA used on the 7I92T has a 4.65V absolute maximum input voltage specification. To allow interfacing with 5V inputs, the 7I92T has bus switches on all I/O pins. The bus switches work by turning off when the input voltage exceeds a preset threshold. The bus switches also allow the I/O pins to be pulled up to 5V when used as inputs or outputs in the open drain mode.
### Pullup or Pulldown Selection
Jumpers W1 and W2 select whether the I/O pins on P1 and P2 have pullup or pulldown resistors.
* **W1** selects the option for P1.
* **W2** selects the option for P2.
When W1 or W2 are in the **UP** position, the I/O pins on the associated connector have pullup resistors. When W1 or W2 are in the **DOWN** position, the I/O pins have pulldown resistors.
| Jumper | Position | Function |
| :--- | :--- | :--- |
| **W1, W2** | **UP** | Pullup to 5V |
| **W1, W2** | **DOWN** | Pulldown to 0V |
### IP Address Selection
The 7I92T has three options for selecting its IP address. These options are selected by Jumpers W5 and W6.
| W5 | W6 | IP Address |
| :--- | :--- | :--- |
| **DOWN** | **DOWN** | Fixed **192.168.1.121** (Default) |
| **DOWN** | **UP** | Fixed from EEPROM |
| **UP** | **DOWN** | BOOTP |
| **UP** | **UP** | **192.168.1.121** + Use Fallback Configuration |
*Note: The initial EEPROM IP address is set to `10.10.10.10` at Mesa, but can be changed to any address with the `mesaflash` utility.*
---
## Connectors
### Connector Locations and Default Jumper Positions
Below is the layout diagram showing connector locations and default jumper configurations (7I92T version shown):
![Connector Locations and Default Jumper Positions](images/connector_locations-09.png)
---
### I/O Connectors Pinout
The 7I92T has two I/O connectors, P1 and P2. Depending on the 7I92T model, P2 may be a DB25 female, DB25 male, or 26-pin header.
#### P2 First I/O Connector Pinout
| DB25 Pin | HDR Pin | Function | DB25 Pin | HDR Pin | Function |
| :--- | :--- | :--- | :--- | :--- | :--- |
| **1** | 1 | IO0 | **14** | 2 | IO1 |
| **2** | 3 | IO2 | **15** | 4 | IO3 |
| **3** | 5 | IO4 | **16** | 6 | IO5 |
| **4** | 7 | IO6 | **17** | 8 | IO7 |
| **5** | 9 | IO8 | **18** | 10 | GND |
| **6** | 11 | IO9 | **19** | 12 | GND |
| **7** | 13 | IO10 | **20** | 14 | GND |
| **8** | 15 | IO11 | **21** | 16 | GND |
| **9** | 17 | IO12 | **22** | 18 | GND or 5V |
| **10** | 19 | IO13 | **23** | 20 | GND or 5V |
| **11** | 21 | IO14 | **24** | 22 | GND or 5V |
| **12** | 23 | IO15 | **25** | 24 | GND or 5V |
| **13** | 25 | IO16 | **XX** | 26 | GND or 5V |
#### P1 HDR26 Connector Pinout
| HDR Pin | Function | HDR Pin | Function |
| :--- | :--- | :--- | :--- |
| **1** | IO17 | **2** | IO18 |
| **3** | IO19 | **4** | IO20 |
| **5** | IO21 | **6** | IO22 |
| **7** | IO23 | **8** | IO24 |
| **9** | IO25 | **10** | GND |
| **11** | IO26 | **12** | GND |
| **13** | IO27 | **14** | GND |
| **15** | IO28 | **16** | GND |
| **17** | IO29 | **18** | GND or 5V |
| **19** | IO30 | **20** | GND or 5V |
| **21** | IO31 | **22** | GND or 5V |
| **23** | IO32 | **24** | GND or 5V |
| **25** | IO33 | **26** | GND or 5V |
*Note: The 26-pin header P1 will match standard parallel port pin-out if terminated with flat cable 26-pin receptacle/DB25F cable with pin 1s connected (and header pin 26 left open).*
A cable kit is available from MESA to interface the 26-pin header to Mesa and general parallel port type breakout boards.
---
### Power Connector Pinout
**P4** is the 7I92T power connector. P4 is a 3.5mm plug-in screw terminal block.
| Pin | Function | Notes |
| :--- | :--- | :--- |
| **1** | +5V | TOP, SQUARE PAD |
| **2** | GND | BOTTOM, ROUND PAD |
---
### JTAG Connector Pinout
**P3** is a JTAG programming connector. This is normally used only for debugging or if both EEPROM configurations have been corrupted. In case of corrupted EEPROM contents, the EEPROM can be re-programmed using Efinix's stand-alone programming tool.
| Pin | Function | Pin | Function |
| :--- | :--- | :--- | :--- |
| **1** | TMS | **2** | TDI |
| **3** | TDO | **4** | GND |
| **5** | TCK | **6** | GND |
| **7** | /RESET | **8** | GND |
| **9** | /SS | **10** | +3.3V |
---
### Frame Ground Connection
The top left mounting hole (near the Ethernet jack) is the frame ground connection. This should be grounded to earth/frame ground for best ESD/EMI resistance.
---
## Operation
### FPGA
The 7I92T uses an **Efinix T20F256C4** FPGA.
### IP Address Selection Details
Initial communication with the 7I92T requires knowing its IP address. The 7I92T has 3 IP address options (Default, EEPROM, and BootP) selected by jumpers W5 and W6.
* **Default IP address**: Always `192.168.1.121`.
* **EEPROM IP address**: Set by writing Ethernet EEPROM locations `0x20` and `0x22`.
* **BootP**: Allows the 7I92T address to be set by a DHCP/BootP server. If BootP is chosen, the 7I92T will retry BootP requests at a ~1 Hz rate if the BootP server does not respond.
### Host Communication
The 7I92T standard firmware is designed for low-overhead real-time communication with a host controller, so it implements a very simple set of IPv4 operations. These operations include ARP reply, ICMP echo reply, and UDP packet receive/send for host data communications. UDP is used so that the 7I92T can be used on a standard network with standard tools for non-real-time applications. No fragmentation is allowed, so the maximum packet size is 1500 bytes.
### UDP
All 7I92T data communication is done via UDP packets. The 7I92T socket number for UDP data communication is **27181**. Read data is routed to the requester's port number. Under UDP, a simple register access protocol is used called **LBP16**.
### LBP16 Protocol
LBP16 allows read and write access to up to eight separate address spaces with different sizes and characteristics. Current firmware uses seven of these spaces. For efficiency, LBP16 allows access to blocks of registers at sequential increasing addresses (Block transfers).
### Windows ARP Issues
The Windows TCP stack has a characteristic that causes it to drop outgoing UDP packets when refreshing its ARP cache. Because of this, you must either verify packet transmission via echoing data from the 7I92T for every transaction (reading `RXUDPCount` is suggested) and retrying failed transactions, or alternatively, setting up a static entry for the 7I92T in the ARP table. This is done using the Windows `arp` command.
---
### FPGA Configuration
The 7I92T is configured at power-up by an SPI FLASH memory. This flash memory is a 16M-bit chip that has space for two configuration files. Since all Ethernet logic on the 7I92T is in the FPGA, a problem with configuration means that Ethernet access will not be possible. For this reason, there is a backup method to recover from FPGA boot failures: fallback.
### Fallback Configuration
The 7I92T flash memory normally contains two configuration file images: a **user image** and a **fallback image**. If the primary user configuration is corrupted, the FPGA will load the fallback configuration so the flash memory image can be repaired remotely without having to resort to switching memories or JTAG programming.
---
### EEPROM Layout (M25P16)
The EEPROM used on the 7I92T for configuration storage is the **M25P16**, which is a 16M-bit (2MB) EEPROM with thirty-two 64KB sectors. Configuration files are stored on sector boundaries to allow individual configuration file erasing and updating.
| Sector Offset | Content Description |
| :--- | :--- |
| **First Half (Fallback Space)** | |
| `0x00000` | Fallback Configuration Block 0 |
| `0x10000` | Fallback Configuration Block 1 |
| `0x20000` | Fallback Configuration Block 2 |
| `0x30000` | Fallback Configuration Block 3 |
| `0x40000` | Fallback Configuration Block 4 |
| `0x50000` | Fallback Configuration Block 5 |
| `0x60000` | Fallback Configuration Block 6 |
| `0x70000` | Fallback Configuration Block 7 |
| `0x80000` | Fallback Configuration Block 8 |
| `0x90000` | Fallback Configuration Block 9 |
| `0xA0000` | Fallback Configuration Block 10 |
| `0xB0000` | Fallback Configuration Block 11 |
| `0xC0000` | Unused / Free |
| `0xD0000` | Unused / Free |
| `0xE0000` | Unused / Free |
| `0xF0000` | Unused / Free |
| **Second Half (User Space)** | |
| `0x100000` | User Configuration Block 0 |
| `0x110000` | User Configuration Block 1 |
| `0x120000` | User Configuration Block 2 |
| `0x130000` | User Configuration Block 3 |
| `0x140000` | User Configuration Block 4 |
| `0x150000` | User Configuration Block 5 |
| `0x160000` | User Configuration Block 6 |
| `0x170000` | User Configuration Block 7 |
| `0x180000` | User Configuration Block 8 |
| `0x190000` | User Configuration Block 9 |
| `0x1A0000` | User Configuration Block 10 |
| `0x1B0000` | User Configuration Block 11 |
| `0x1C0000` | Unused / Free |
| `0x1D0000` | Unused / Free |
| `0x1E0000` | Unused / Free |
| `0x1F0000` | Unused / Free |
---
### Bitfile Format
The 7I92TF, 7I92TM, and 7I92TH use bitfiles for an Efinix T20F256 FPGA and must not be programmed with bitfiles designed for the 7I92, 7I92M, or 7I92H.
> [!CAUTION]
> Never write a bitfile that is not designed for a 7I92T into the 7I92T's EEPROM. Doing so can "brick" the card and require it to be returned to Mesa for repair. Additionally, never write a user configuration to the fallback location, and never write a fallback configuration to the user area.
---
### Mesaflash Utility
The Linux utility program `mesaflash` is provided to write configuration files to the 7I92T EEPROM. These files depend on a simple SPI interface built into both the standard user FPGA bitfiles and the fallback bitfile. **Mesaflash version 3.4.5 or later must be used to program the 7I92T.**
If `mesaflash` is run with a `--help` command-line argument, it will print usage information. The following examples assume the target 7I92T is using the default IP address of `192.168.1.121`.
* **Write User Area**: Writes a standard binfile `FPGAFILE.BIN` to the user area of the EEPROM:
```bash
mesaflash --device 7I92T --addr 192.168.1.121 --write FPGAFILE.BIN
```
* **Reload FPGA**: Reloads the FPGA from the user area of the EEPROM:
```bash
mesaflash --device 7I92T --addr 192.168.1.121 --reload
```
* **Verify Configuration**: Verifies the file `FPGAFILE.BIN` against the user area of the EEPROM:
```bash
mesaflash --device 7I92T --addr 192.168.1.121 --verify FPGAFILE.BIN
```
* **Read Pinout/Modules**: Prints the modules and pinout of the currently loaded 7I92T firmware:
```bash
mesaflash --device 7I92T --addr 192.168.1.121 --readhmid
```
#### Setting EEPROM IP Address
Mesaflash can write a custom IP address to the EEPROM:
```bash
mesaflash --device 7I92T --addr 192.168.1.121 --set ip=10.10.10.100
```
---
### Free Flash Memory Space
Eight 64KB blocks of flash memory space are free when both user and fallback configurations are installed. These free blocks can be used for storing user data.
### Fallback Indication
Mesa's supplied fallback configurations blink the red **INIT LED** on the top right-hand side of the card if the primary configuration fails and the fallback configuration loads successfully. If this happens, it means the user configuration is corrupted or not a proper configuration for the 7I92T's FPGA. This can be fixed by running the configuration utility and re-writing the user configuration.
### Failure to Configure
The 7I92T should configure its FPGA within a fraction of a second of power application. If the FPGA card fails to configure, the red **/DONE LED CR2** will remain illuminated. If this happens:
1. Try setting the IP address select option jumpers (W5, W6) to the **UP, UP** positions. This forces a boot from the fallback memory location (using the fixed IP `192.168.1.121`), allowing reprogramming of the user configuration.
2. If this fails, the 7I92T's EEPROM must be re-programmed via the JTAG connector or by a JTAG FPGA load followed by an Ethernet EEPROM update.
### Clock Signals
The 7I92T has a single 50 MHz clock signal from an on-card crystal oscillator. The clock can be multiplied and divided by the FPGA's clock generator block to generate a wide range of internal clock signals. The 50 MHz clock is also used to generate the 25 MHz clock for the Ethernet interface chip.
### LEDs
The 7I92T has:
* **4 Green FPGA-driven user LEDs** (User 0 through User 3): Used for any custom purpose or debugging.
* **2 Red FPGA-driven status LEDs**: Reflect the state of the FPGA's `DONE` and `/INIT` pins.
- The `/DONE` LED lights until the FPGA is configured at power-up.
- The `/INIT` LED lights when power-on reset is asserted or when a CRC error occurs during configuration. Under Mesa configurations, the `/INIT` LED blinks when the fallback configuration is loaded.
* **1 Power LED**.
### Pullup/Pulldown Resistors
All I/O pins are provided with pull-up or pull-down resistors to allow connection to open drain, open collector, or OPTO devices. These resistors have a value of **4.7K Ω** and have a maximum pull-up/pull-down current of ~1.07 mA at 5V.
### I/O Levels
The FPGA used on the 7I92T has programmable I/O levels for interfacing with different logic families. The 7I92T does not support I/O standards that require input reference voltages. All standard Mesa configurations use **LVTTL** levels.
Even though the 7I92T can tolerate 5V signal inputs, its outputs will not swing to 5V. The outputs are push-pull CMOS that drive to the output supply rail of 3.3V. This is sufficient for TTL compatibility but may cause problems with some types of loads:
* *Example*: When driving an LED that has its anode connected to 5V (as in some OPTO isolators or SSR module racks), the 3.3V high level might not completely turn the LED off.
* *Solution*: To avoid this problem, either drive loads that are ground-referred, use 3.3V as the VCC for VCC-referred loads, or use the open-drain mode.
### Startup I/O Voltage
After power-up or system reset and before the FPGA is configured, the pull-up/pull-down resistors pull all I/O signals to a high or low level. If the FPGA is used for motion control or controlling devices that could present a hazard when enabled, external circuitry should be designed so that this initial state results in a safe condition.
### Interface Cables
Mesa daughtercards use a female DB25 connector for interface.
* **7I92TM (Male DB25)**: Allows direct connection with no cable required for the primary port.
* **7I92TF (Female DB25)**: Requires a male-male DB25 cable to connect to a Mesa daughtercard.
* **7I92TH / Secondary Ports**: Require a HDR26 to DB25M cable to connect to a Mesa daughtercard.
For noise immunity and signal fidelity, it is highly suggested that only **IEEE-1284 rated cables** be used. IEEE-1284 rated cables have a twisted-pair shield wire for each signal wire and an overall shield terminated in the metal connector shell. This results in much better performance than flat or non-IEEE-1284 parallel port cables. For short connections of less than 3 feet, flat cables can be used. No other type of cable should be used.
### Breakout Power Option
When used with Mesa breakout/daughter cards, the 7I92T can supply up to **1A of 5V power** to each daughtercard. This option is disabled by default to avoid possible damage to standard breakout boards.
If you use this option, you must verify that the interface cable does not tie the eight parallel port ground wires together as some cheap printer cables do. Mesa-supplied IEEE-1284 cables are guaranteed to work with this power option.
### Plug and Go Kits
Motion control kits with a pre-programmed 7I92TM and daughtercard(s) are available to simplify system integration.
---
## Supplied Configurations
### HostMot2 Firmware
All supplied configurations are part of the **HostMot2** motion control firmware set. HostMot2 firmware is open-source and easily extendible to support new interfaces. For detailed register-level information on HostMot2 firmware modules, see the `regmap` file in the HostMot2 source code directory.
### Standard Configurations
* **7I76X1D**: Intended to work with a single 7I76 five-axis step/dir daughtercard.
* **7I76_7I74D**: Configured for a 7I76 five-axis step/dir daughtercard on P2 and a 7I74 eight-channel RS-422 interface on P1 (configured with eight Smart Serial channels).
* **G540X2D**: Intended to work with two Gecko G540 four-axis step motor drives. Includes 8 hardware step generators, 2 PWM generators, 4 GPIO outputs, 8 GPIO inputs, 2 charge pump drivers, and a watchdog timer.
* **7I77X2D**: Intended to work with two 7I77 six-axis analog servo daughtercards. Includes 12 encoder inputs, 6 Smart Serial interfaces (4 local, 2 fed through), a watchdog timer, and GPIO.
* **7I77_7I76D**: Intended to work with a 7I77 six-axis analog servo daughtercard on P2 and a 7I76 daughtercard on P1.
* **7I77_7I74D**: Intended to work with a 7I77 six-axis analog servo daughtercard on P2 and a 7I74 eight-channel RS-422 daughtercard on P1. Includes 6 encoder inputs, 14 Smart Serial interfaces, watchdog timer, and GPIO.
* **7I74X2D**: Intended to work with two 7I74 RS-422 daughtercards. Includes 16 Smart Serial interfaces (allowing real-time control of up to 784 digital I/O points), a watchdog timer, and GPIO.
* **7I78X2D**: Intended to work with two 7I78 four-axis step/dir daughtercards (one on each connector). Includes 8 hardware step generators, 2 PWM generators, 2 encoder inputs, 2 Smart Serial interfaces, watchdog, and GPIO.
* **PROB_RFX2D**: A step/dir configuration intended to work with most common parallel port breakouts (one on each connector). Includes 8 hardware step generators, 2 encoders with index, 4 PWM generators, watchdog, and GPIO.
### Pin Files
Each configuration has an associated file with a `.pin` extension that describes the FPGA functions included in the configuration and the I/O pinout. These are plain text files that can be viewed with any text editor.
---
## Reference Information
### LBP16 Protocol Detail
LBP16 is a simple remote register access protocol to allow efficient register access over the Ethernet link. All LBP16 commands are 16 bits in length and have the following structure:
| Bit | Symbol | Description |
| :--- | :--- | :--- |
| **15** | **W** | Write bit (1 = Write, 0 = Read) |
| **14** | **A** | Includes Address bit (1 = Command is followed by 16-bit address; 0 = Use current address pointer) |
| **13** | **C** | Info Area Access (0 = Access memory space itself, 1 = Access associated info area) |
| **12..10** | **M** | 3-bit Memory Space Specifier (`000b` through `111b`) |
| **9..8** | **S** | Transfer Element Size Specifier (`00b` = 8 bits, `01b` = 16 bits, `10b` = 32 bits, `11b` = 64 bits) |
| **7** | **I** | Increment Address Pointer bit (1 = Increment pointer by transfer size in bytes after every transfer; 0 = No increment, useful for FIFOs) |
| **6..0** | **N** | Transfer Count in units of selected size (1 through 127; 0 is an error) |
LBP16 read commands are followed by the 16-bit address (if the A bit is set). LBP16 write commands are followed by the address (if bit A is set) and the data to be written. LBP16 addresses are always byte addresses. LBP data and addresses are little-endian, so they must be sent LSB first.
---
### Info Area
Each of the eight possible memory spaces in LBP16 has an associated read-only info area. Only 16-bit read access is allowed to the info area.
#### Info Area Layout
| Offset (Hex) | Field Name | Description |
| :--- | :--- | :--- |
| `0000` | COOKIE | `0x5A0N` where `N` is address space 0..7 |
| `0002` | MEMSIZES | Memory Space Sizes Word (see format below) |
| `0004` | MEMRANGES | Memory Space Ranges Word (see format below) |
| `0006` | ADDRESS POINTER | Current address pointer |
| `0008` | SPACENAME 0,1 | First 2 characters of space name |
| `000A` | SPACENAME 2,3 | Next 2 characters of space name |
| `000C` | SPACENAME 4,5 | Next 2 characters of space name |
| `000E` | SPACENAME 6,7 | Last 2 characters of space name |
#### Info Area MEMSIZES Format
| Bit(s) | Symbol | Description |
| :--- | :--- | :--- |
| **15** | **W** | Memory space is Writeable |
| **14..8** | **T** | Type: `01h` = Register, `02h` = Memory, `0Eh` = EEPROM, `0Fh` = Flash |
| **7..4** | **X** | Reserved / Unused |
| **3..0** | **A** | Supported access widths (bitmask: bit 0 = 8-bit, bit 1 = 16-bit, bit 2 = 32-bit, bit 3 = 64-bit). E.g., `0x06` = 16-bit and 32-bit operations allowed. |
#### Info Area MEMRANGES Format
| Bit(s) | Symbol | Description |
| :--- | :--- | :--- |
| **15..11** | **E** | Erase block size ($2^E$ bytes). 0 for non-flash. |
| **10..6** | **P** | Page size ($2^P$ bytes). 0 for non-flash. |
| **5..0** | **S** | Address range ($2^S$ bytes). |
---
### Info Area Access
Hex command examples below are written in LSB-first order. `NN` is the count/increment field, and `LLHH` is the low and high bytes of the address.
* **Ispace 0 (HostMot2 space)**:
- Read with address: `NN61LLHH`
- Read (no address): `NN21`
* **Ispace 1 (Ethernet chip space)**:
- Read with address: `NN65LLHH`
- Read (no address): `NN25`
* **Ispace 2 (Ethernet EEPROM space)**:
- Read with address: `NN69LLHH`
- Read (no address): `NN29`
* **Ispace 3 (FPGA flash space)**:
- Read with address: `NN6DLLHH`
- Read (no address): `NN2D`
* **Ispace 6 (LBP16 R/W space)**:
- Read with address: `NN79LLHH`
- Read (no address): `NN39`
* **Ispace 7 (LBP16 R/O space)**:
- Read with address: `NN7DLLHH`
- Read (no address): `NN3D`
---
### Supported Memory Spaces
#### Space 0: HostMot2 Registers
This address space gives access to the FPGA I/O. It is a 64KB address range with 32-bit R/W access.
* Read with address: `NN42LLHH`
* Write with address: `NNC2LLHH`
* Read (no address): `NN02`
* Write (no address): `NN82`
##### Examples:
1. **Read first 5 entries in HostMot2 IDROM** (IDROM starts at `0x0400`):
```hex
85420004
```
* `85`: `NN` = 5 | Inc bit (`0x80`) set so address increments after each access.
* `42`: Read from space 0 with address included.
* `00`: LSB of address.
* `04`: MSB of address.
2. **Write 4 GPIO ports starting at `0x1000`**:
```hex
84C20010AAAAAAAABBBBBBBBCCCCCCCCDDDDDDDD
```
* `84`: `NN` = 4 | Inc bit set.
* `C2`: Write to space 0 with address included.
* `00`, `10`: Address `0x1000`.
* `AAAAAAAA` through `DDDDDDDD`: 32-bit little-endian write data.
#### Space 1: Ethernet Chip Access
Allows access to the KSZ8851-16 registers for debugging. All accesses are 16-bit.
* Read with address: `NN45LLHH`
* Write with address: `NNC5LLHH`
* Read (no address): `NN05`
* Write (no address): `NN85`
##### Example: Read CIDER register:
```hex
0145C000
```
* `01`: `NN` = 1 (16-bit).
* `45`: Read space 1 with address included.
* `C0`, `00`: CIDER register address.
#### Space 2: Ethernet EEPROM Chip Access
Stores the Ethernet MAC address, card name, and EEPROM-settable IP address. Accessed as 16-bit data. The first `0x20` bytes are read-only; the remaining `0x60` bytes are read/write.
* Read with address: `NN49LLHH`
* Write with address: `NNC9LLHH`
* Read (no address): `NN09`
* Write (no address): `NN89`
##### Writing to EEPROM:
Writes and erases require that the `EEPROMWEna` register (Space 6, offset `0x1A`) be set to `5A02`. `EEPROMWEna` is cleared at the end of every LBP packet, so the write enable command must be prepended to the EEPROM write/erase commands in the same packet.
##### Example: Write EEPROM IP address `192.168.0.32` (`C0:A8:0:20`):
```hex
01D91A00025A82C920002000A8C0
```
* `01D91A00025A`: Enable EEPROM area writes (Write `5A02` to Space 6, address `0x001A`).
* `82C920002000A8C0`: Write 2 words to `0x0020` with address increment.
##### Ethernet EEPROM Layout (Space 2)
| Address (Hex) | Field Name / Description | Access |
| :--- | :--- | :--- |
| `0000` | Reserved | RO |
| `0002` | MAC Address LS Word | RO |
| `0004` | MAC Address Mid Word | RO |
| `0006` | MAC Address MS Word | RO |
| `0008` | Reserved | RO |
| `000A` | Reserved | RO |
| `000C` | Reserved | RO |
| `000E` | Unused | RO |
| `0010` | CardNameChar-0,1 | RO |
| `0012` | CardNameChar-2,3 | RO |
| `0014` | CardNameChar-4,5 | RO |
| `0016` | CardNameChar-6,7 | RO |
| `0018` | CardNameChar-8,9 | RO |
| `001A` | CardNameChar-10,11 | RO |
| `001C` | CardNameChar-12,13 | RO |
| `001E` | CardNameChar-14,15 | RO |
| `0020` | EEPROM IP Address LS Word | RW |
| `0022` | EEPROM IP Address MS Word | RW |
| `0024` | EEPROM Netmask LS Word (V16 > firmware) | RW |
| `0026` | EEPROM Netmask MS Word (V16 > firmware) | RW |
| `0028` | DEBUG LED Mode (LSB determines HostMot2 (0) or debug(1)) | RW |
| `002A` | Reserved | RW |
| `002C` | Reserved | RW |
| `002E` | Reserved | RW |
| `0030..007E` | Unused | RW |
#### Space 3: FPGA Flash EEPROM Chip Access
Allows access to the FPGA's configuration flash memory. All flash memory access is 32-bit. It is done indirectly via a 32-bit address pointer and a 32-bit data port.
* Read with address: `NN4ELLHH`
* Write with address: `NNCELLHHDDDDDDDD`
* Read (no address): `NN0E`
* Write (no address): `NN8E`
##### Flash Memory Registers
Flash memory space has only 4 accessible registers:
| Address (Hex) | Register Name | Description |
| :--- | :--- | :--- |
| `0000` | **FL_ADDR** | 32-bit flash address register |
| `0004` | **FL_DATA** | 32-bit flash data register |
| `0008` | **FL_ID** | 32-bit read-only flash ID register |
| `000C` | **SEC_ERASE** | 32-bit write-only sector erase register |
The flash byte address is automatically incremented by 4 after each data access. Reads can access all of flash memory consecutively, but write operations can only write a flash page worth of data (256 bytes) before the page write must be started.
##### Examples:
1. **Read 1024 bytes (256 doublewords) of flash starting at address `0x00123456`**:
```hex
01CE000056341200
404E0400
400E
400E
400E
```
* First command writes `0x00123456` to `FL_ADDR` (`0x0000`).
* Subsequent commands read `FL_DATA` (`0x0004`) without the increment bit (the flash controller increments address automatically).
2. **Write a 256-byte page of flash memory starting at `0xC000`**:
Writes/erases require setting `EEPROMWEna` (Space 6, offset `0x1A`) to `5A03` in the same packet.
```hex
01D91A00035A ; Write EEPROMWEna with 0x5A03
01CE000000C00000 ; Write flash address 0x0000C000 to FL_ADDR
40CE0400 ; Write 64 doublewords to FL_DATA
[64 doublewords of data]
014E0000 ; Read FL_ADDR for host synchronization/wait
```
3. **Erase flash sector `0x00010000`**:
```hex
01D91A00035A ; Write EEPROMWEna with 0x5A03
01CE000000000100 ; Write sector address to FL_ADDR
01CE0C0000000000 ; Write sector erase command to SEC_ERASE (with 32-bit dummy data)
014E0000 ; Read FL_ADDR for host synchronization (echos address after erase)
```
#### Space 4: LBP Timer/Utility Area
Read/write access to LBP-specific timing registers. All accesses are 16-bit.
* Read with address: `NN51LLHH`
* Write with address: `NND1LLHHDDDD`
* Read (no address): `NN11`
* Write (no address): `NN91DDDD`
##### Memory Space 4 Layout
| Address (Hex) | Register Name | Description |
| :--- | :--- | :--- |
| `0000` | **uSTimeStampReg** | Reads the free-running hardware microsecond timer. Writes are no-op. |
| `0002` | **WaituSReg** | Delays processing for specified number of microseconds when written (0 to 65535 μs). Reads return last wait time written. |
| `0004` | **HM2Timeout** | Sets timeout value for all `WaitForHM2` operations (0 to 65536 μs). |
| `0006` | **WaitForHM2RefTime** | Waits for rising edge of reference timer. Reads return wait time in μs. |
| `0008` | **WaitForHM2Timer1** | Waits for rising edge of HM2 Timer 1. |
| `000A` | **WaitForHM2Timer2** | Waits for rising edge of HM2 Timer 2. |
| `000C` | **WaitForHM2Timer3** | Waits for rising edge of HM2 Timer 3. |
| `000E` | **WaitForHM2Timer4** | Waits for rising edge of HM2 Timer 4. |
| `0010..001E` | **Scratch** | Scratch registers for custom use. |
The `HM2Timeout` register places an upper bound on how long `WaitForHM2` operations will wait. Timeout events set the `HM2TimeOutError` bit in the error register.
#### Space 6: LBP Status/Control Area
Read/write access to LBP-specific control, status, and error registers. All accesses are 16-bit.
* Read with address: `NN59LLHH`
* Write with address: `NND9LLHHDDDD`
* Read (no address): `NN19`
* Write (no address): `NN99DDDD`
##### Memory Space 6 Layout
| Address (Hex) | Register Name | Description |
| :--- | :--- | :--- |
| `0000` | **ErrorReg** | Error status register (see format below). |
| `0002` | **LBPParseErrors** | Count of LBP parse errors. |
| `0004` | **LBPMemErrors** | Count of LBP memory range/access errors. |
| `0006` | **LBPWriteErrors** | Count of LBP write block errors. |
| `0008` | **RXPktCount** | Received packet count. |
| `000A` | **RXUDPCount** | Received UDP packet count (useful as a sequence indicator). |
| `000C` | **RXBadCount** | Received bad packet count. |
| `000E` | **TXPktCount** | Transmitted packet count. |
| `0010` | **TXUDPCount** | Transmitted UDP packet count. |
| `0012` | **TXBadCount** | Transmitted bad packet count. |
| `0014` | **LEDMode** | LSb = 0: LEDs owned by HostMot2; LSb = 1: LEDs are local debug LEDs. |
| `0016` | **DebugLEDPtr** | Variable address in Space 6 to show on local debug LEDs (default: `RXPktCount`). |
| `0018` | **Scratch** | Scratch pad (useful for custom sequence numbers). |
| `001A` | **EEPROMWEna** | Must be set to `5A0N` to enable EEPROM/flash writes or erases (N is memory space). Cleared at packet end. |
| `001C` | **LBPReset** | Set to non-zero to reset the LBP16 firmware. The card reads jumpers and re-assigns IP. Card is unresponsive for ~0.5s. |
| `001E` | **FPGAICAP** | FPGA ICAP-16 register for remote FPGA reload and low-level FPGA access. |
##### Error Register Format (ErrorReg)
| Bit | Error | Description |
| :--- | :--- | :--- |
| **0** | **LBPParseError** | Command parsing error |
| **1** | **LBPMemError** | Access to unsupported memory space or address out of range |
| **2** | **LBPWriteError** | Attempted write to read-only space or write size error |
| **3** | **RXPacketErr** | UDP packet receive error |
| **4** | **TXPacketErr** | UDP packet transmission error |
| **5** | **HM2TimeOutError** | HostMot2 wait operation timed out |
| **6..15** | **Reserved** | Reserved |
#### Space 7: LBP Read-Only Area
Used for read-only card identification and diagnostic information. All accesses are 16-bit.
* Read with address: `NN5DLLHH`
* Read (no address): `NN1D`
##### Memory Space 7 Layout
| Address (Hex) | Register Name | Description |
| :--- | :--- | :--- |
| `0000` | **CardNameChar-0,1** | Characters 0 & 1 of Card Name |
| `0002` | **CardNameChar-2,3** | Characters 2 & 3 of Card Name |
| `0004` | **CardNameChar-4,5** | Characters 4 & 5 of Card Name |
| `0006` | **CardNameChar-6,7** | Characters 6 & 7 of Card Name |
| `0008` | **CardNameChar-8,9** | Characters 8 & 9 of Card Name |
| `000A` | **CardNameChar-10,11** | Characters 10 & 11 of Card Name |
| `000C` | **CardNameChar-12,13** | Characters 12 & 13 of Card Name |
| `000E` | **CardNameChar-14,15** | Characters 14 & 15 of Card Name |
| `0010` | **LBPVersion** | Version of LBP firmware protocol |
| `0012` | **FirmwareVersion** | Version of card configuration firmware |
| `0014` | **Option Jumpers** | Status of option jumpers |
| `0016` | **Reserved** | Reserved |
| `0018` | **RecvStartTS** | Receive start timestamp (1 μs resolution) |
| `001A` | **RecvDoneTS** | Receive done timestamp (1 μs resolution) |
| `001C` | **SendStartTS** | Send start timestamp from previous packet |
| `001E` | **SendDoneTS** | Send done timestamp from previous packet |
---
### ELBPCOM Python Script
`ELBPCOM` is a simple demo script in Python (2.x) to verify LBP16 host communication. It accepts hexadecimal LBP16 commands and prints results.
```python
import socket
# Setup UDP Socket
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, 0)
sip = "192.168.1.121"
sport = 27181
s.settimeout(0.2)
while True:
try:
sdata = raw_input('>')
if not sdata:
continue
sdata = sdata.decode('hex')
s.sendto(sdata, (sip, sport))
data, addr = s.recvfrom(1280)
print('>') + data.encode('hex')
except socket.timeout:
print('No answer')
except KeyboardInterrupt:
break
```
#### Sample Communication Run:
1. **Read HostMot2 Cookie** at `0x100`:
```text
>01420001
>fecaaa55
```
*(Returns `0x55AACAFE` in little-endian format)*
2. **Read EEPROM IP address** at `0x0020`:
```text
>82492000
>450a5863
```
*(Returns `63:58:0A:45` which represents IP `99.88.10.69`)*
3. **Write custom EEPROM IP address** (to `192.168.0.1` / `C0:A8:0:1`):
```text
>01D91A00025A82C920000100a8C0
```
---
## Specifications
| Parameter | Min | Max | Notes |
| :--- | :--- | :--- | :--- |
| **Power Supply** | | | |
| 5V Power Supply | 4.5V | 5.5V | Supplied via P4 connector |
| 5V Power Consumption | — | 2A | P4 Connector limit, depends on external load |
| 5V Power Consumption (No Load) | — | 250 mA | Typical current with no external IO load |
| Max 5V Current to I/O Connectors | — | 1000 mA | Limit per connector (P1 and P2) |
| **Environmental** | | | |
| Temperature Range (-C version) | 0 °C | +70 °C | Commercial grade |
| Temperature Range (-I version) | -40 °C | +85 °C | Industrial grade |
| **I/O Ratings** | | | |
| Input Voltage | -0.3V | 7.0V | 5V Tolerant through bus switches |
| Output Voltage (24 mA Sink) | — | 0.6V | FPGA outputs set for highest drive |
| Output Voltage (24 mA Source) | 2.4V | — | FPGA outputs set for highest drive |
---
## Card Drawing
Below is the mechanical layout and dimensions drawing of the 7I92T card:
![7I92T Card Drawing](images/card_drawing-41.png)

BIN
7i92tman.pdf Normal file

Binary file not shown.

BIN
images/card_drawing-41.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

84
mayo-mill-probebasic.hal Normal file
View File

@@ -0,0 +1,84 @@
# Generated by stepconf 1.1 at Thu May 29 11:48:34 2025
# If you make changes to this file, they will be
# overwritten when you run stepconf again
loadrt [KINS]KINEMATICS
loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS num_dio=6 num_aio=3
loadrt hal_parport cfg="0 out"
setp parport.0.reset-time 5000
loadrt stepgen step_type=0,0,0
addf parport.0.read base-thread
addf stepgen.make-pulses base-thread
addf parport.0.write base-thread
addf parport.0.reset base-thread
addf stepgen.capture-position servo-thread
addf motion-command-handler servo-thread
addf motion-controller servo-thread
addf stepgen.update-freq servo-thread
net probe-in => motion.probe-input
setp parport.0.pin-01-out-invert 1
net spindle-on => parport.0.pin-01-out
net xdir => parport.0.pin-02-out
net xstep => parport.0.pin-03-out
setp parport.0.pin-03-out-reset 1
net ydir => parport.0.pin-04-out
net ystep => parport.0.pin-05-out
setp parport.0.pin-05-out-reset 1
net zdir => parport.0.pin-06-out
net zstep => parport.0.pin-07-out
setp parport.0.pin-07-out-reset 1
net home-x <= parport.0.pin-10-in
net home-y <= parport.0.pin-11-in
net home-z <= parport.0.pin-12-in
net estop-ext <= parport.0.pin-13-in-not
net probe-in <= parport.0.pin-15-in
setp stepgen.0.position-scale [JOINT_0]SCALE
setp stepgen.0.steplen 1
setp stepgen.0.stepspace 0
setp stepgen.0.dirhold 70000
setp stepgen.0.dirsetup 70000
setp stepgen.0.maxaccel [JOINT_0]STEPGEN_MAXACCEL
net xpos-cmd joint.0.motor-pos-cmd => stepgen.0.position-cmd
net xpos-fb stepgen.0.position-fb => joint.0.motor-pos-fb
net xstep <= stepgen.0.step
net xdir <= stepgen.0.dir
net xenable joint.0.amp-enable-out => stepgen.0.enable
net home-x => joint.0.home-sw-in
setp stepgen.1.position-scale [JOINT_1]SCALE
setp stepgen.1.steplen 1
setp stepgen.1.stepspace 0
setp stepgen.1.dirhold 70000
setp stepgen.1.dirsetup 70000
setp stepgen.1.maxaccel [JOINT_1]STEPGEN_MAXACCEL
net ypos-cmd joint.1.motor-pos-cmd => stepgen.1.position-cmd
net ypos-fb stepgen.1.position-fb => joint.1.motor-pos-fb
net ystep <= stepgen.1.step
net ydir <= stepgen.1.dir
net yenable joint.1.amp-enable-out => stepgen.1.enable
net home-y => joint.1.home-sw-in
setp stepgen.2.position-scale [JOINT_2]SCALE
setp stepgen.2.steplen 1
setp stepgen.2.stepspace 0
setp stepgen.2.dirhold 70000
setp stepgen.2.dirsetup 70000
setp stepgen.2.maxaccel [JOINT_2]STEPGEN_MAXACCEL
net zpos-cmd joint.2.motor-pos-cmd => stepgen.2.position-cmd
net zpos-fb stepgen.2.position-fb => joint.2.motor-pos-fb
net zstep <= stepgen.2.step
net zdir <= stepgen.2.dir
net zenable joint.2.amp-enable-out => stepgen.2.enable
net home-z => joint.2.home-sw-in
net estop-out <= iocontrol.0.user-enable-out
net estop-ext => iocontrol.0.emc-enable-in
net tool-change-request <= iocontrol.0.tool-change
net tool-change-confirmed => iocontrol.0.tool-changed
net tool-number <= iocontrol.0.tool-prep-number
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared

245
mayo-mill.stepconf Normal file
View File

@@ -0,0 +1,245 @@
<?xml version="1.0" ?>
<stepconf>
<property type="int" name="ahomepos" value="0"/>
<property type="int" name="ahomesw" value="0"/>
<property type="float" name="ahomevel" value="0.05"/>
<property type="int" name="alatchdir" value="0"/>
<property type="int" name="aleadscrew" value="360"/>
<property type="int" name="amaxacc" value="1200"/>
<property type="int" name="amaxlim" value="9999"/>
<property type="int" name="amaxvel" value="360"/>
<property type="int" name="amicrostep" value="2"/>
<property type="int" name="aminlim" value="-9999"/>
<property type="int" name="apulleyden" value="1"/>
<property type="int" name="apulleynum" value="1"/>
<property type="int" name="ascale" value="0"/>
<property type="int" name="asteprev" value="200"/>
<property type="int" name="axes" value="0"/>
<property type="eval" name="axislist" value="[]"/>
<property type="bool" name="classicladder" value="False"/>
<property type="bool" name="createshortcut" value="True"/>
<property type="bool" name="createsymlink" value="True"/>
<property type="int" name="customhal" value="1"/>
<property type="float" name="digitsin" value="15.0"/>
<property type="float" name="digitsout" value="15.0"/>
<property type="float" name="dirhold" value="20000.0"/>
<property type="float" name="dirsetup" value="20000.0"/>
<property type="string" name="drivertype" value="other"/>
<property type="float" name="floatsin" value="10.0"/>
<property type="float" name="floatsout" value="10.0"/>
<property type="bool" name="halui" value="False"/>
<property type="eval" name="halui_list" value="[]"/>
<property type="string" name="ioaddr" value="0"/>
<property type="string" name="ioaddr2" value="0"/>
<property type="string" name="ioaddr3" value="2"/>
<property type="bool" name="ladderconnect" value="True"/>
<property type="int" name="ladderhaltype" value="0"/>
<property type="string" name="laddername" value="custom.clp"/>
<property type="float" name="latency" value="50000.0"/>
<property type="eval" name="lparport" value="['0']"/>
<property type="string" name="machinename" value="mayo-mill"/>
<property type="bool" name="manualtoolchange" value="True"/>
<property type="eval" name="md5sums" value="[]"/>
<property type="bool" name="modbus" value="False"/>
<property type="int" name="number_pports" value="1"/>
<property type="int" name="ohmiccontact" value="0"/>
<property type="int" name="period" value="25000"/>
<property type="string" name="pin1" value="spindle-on"/>
<property type="string" name="pin10" value="home-x"/>
<property type="bool" name="pin10inv" value="False"/>
<property type="string" name="pin11" value="home-y"/>
<property type="bool" name="pin11inv" value="False"/>
<property type="string" name="pin12" value="home-z"/>
<property type="bool" name="pin12inv" value="False"/>
<property type="string" name="pin13" value="estop-ext"/>
<property type="bool" name="pin13inv" value="True"/>
<property type="string" name="pin14" value="unused-output"/>
<property type="bool" name="pin14inv" value="False"/>
<property type="string" name="pin15" value="probe-in"/>
<property type="bool" name="pin15inv" value="False"/>
<property type="string" name="pin16" value="unused-output"/>
<property type="bool" name="pin16inv" value="False"/>
<property type="string" name="pin17" value="unused-output"/>
<property type="bool" name="pin17inv" value="False"/>
<property type="bool" name="pin1inv" value="True"/>
<property type="string" name="pin2" value="xdir"/>
<property type="bool" name="pin2inv" value="False"/>
<property type="string" name="pin3" value="xstep"/>
<property type="bool" name="pin3inv" value="False"/>
<property type="string" name="pin4" value="ydir"/>
<property type="bool" name="pin4inv" value="False"/>
<property type="string" name="pin5" value="ystep"/>
<property type="bool" name="pin5inv" value="False"/>
<property type="string" name="pin6" value="zdir"/>
<property type="bool" name="pin6inv" value="False"/>
<property type="string" name="pin7" value="zstep"/>
<property type="bool" name="pin7inv" value="False"/>
<property type="string" name="pin8" value="unused-output"/>
<property type="bool" name="pin8inv" value="False"/>
<property type="string" name="pin9" value="unused-output"/>
<property type="bool" name="pin9inv" value="False"/>
<property type="int" name="pp2_direction" value="0"/>
<property type="string" name="pp2_pin1" value="unused-output"/>
<property type="string" name="pp2_pin10_in" value="unused-input"/>
<property type="int" name="pp2_pin10_in_inv" value="0"/>
<property type="string" name="pp2_pin11_in" value="unused-input"/>
<property type="int" name="pp2_pin11_in_inv" value="0"/>
<property type="string" name="pp2_pin12_in" value="unused-input"/>
<property type="int" name="pp2_pin12_in_inv" value="0"/>
<property type="string" name="pp2_pin13_in" value="unused-input"/>
<property type="int" name="pp2_pin13_in_inv" value="0"/>
<property type="string" name="pp2_pin14" value="unused-output"/>
<property type="int" name="pp2_pin14inv" value="0"/>
<property type="string" name="pp2_pin15_in" value="unused-input"/>
<property type="int" name="pp2_pin15_in_inv" value="0"/>
<property type="string" name="pp2_pin16" value="unused-output"/>
<property type="int" name="pp2_pin16inv" value="0"/>
<property type="string" name="pp2_pin17" value="unused-output"/>
<property type="int" name="pp2_pin17inv" value="0"/>
<property type="int" name="pp2_pin1inv" value="0"/>
<property type="string" name="pp2_pin2" value="unused-output"/>
<property type="string" name="pp2_pin2_in" value="unused-input"/>
<property type="int" name="pp2_pin2_in_inv" value="0"/>
<property type="int" name="pp2_pin2inv" value="0"/>
<property type="string" name="pp2_pin3" value="unused-output"/>
<property type="string" name="pp2_pin3_in" value="unused-input"/>
<property type="int" name="pp2_pin3_in_inv" value="0"/>
<property type="int" name="pp2_pin3inv" value="0"/>
<property type="string" name="pp2_pin4" value="unused-output"/>
<property type="string" name="pp2_pin4_in" value="unused-input"/>
<property type="int" name="pp2_pin4_in_inv" value="0"/>
<property type="int" name="pp2_pin4inv" value="0"/>
<property type="string" name="pp2_pin5" value="unused-output"/>
<property type="string" name="pp2_pin5_in" value="unused-input"/>
<property type="int" name="pp2_pin5_in_inv" value="0"/>
<property type="int" name="pp2_pin5inv" value="0"/>
<property type="string" name="pp2_pin6" value="unused-output"/>
<property type="string" name="pp2_pin6_in" value="unused-input"/>
<property type="int" name="pp2_pin6_in_inv" value="0"/>
<property type="int" name="pp2_pin6inv" value="0"/>
<property type="string" name="pp2_pin7" value="unused-output"/>
<property type="string" name="pp2_pin7_in" value="unused-input"/>
<property type="int" name="pp2_pin7_in_inv" value="0"/>
<property type="int" name="pp2_pin7inv" value="0"/>
<property type="string" name="pp2_pin8" value="unused-output"/>
<property type="string" name="pp2_pin8_in" value="unused-input"/>
<property type="int" name="pp2_pin8_in_inv" value="0"/>
<property type="int" name="pp2_pin8inv" value="0"/>
<property type="string" name="pp2_pin9" value="unused-output"/>
<property type="string" name="pp2_pin9_in" value="unused-input"/>
<property type="int" name="pp2_pin9_in_inv" value="0"/>
<property type="int" name="pp2_pin9inv" value="0"/>
<property type="int" name="pp3_direction" value="0"/>
<property type="bool" name="pyvcp" value="False"/>
<property type="bool" name="pyvcpconnect" value="True"/>
<property type="int" name="pyvcphaltype" value="0"/>
<property type="string" name="pyvcpname" value="custom.xml"/>
<property type="eval" name="qtplasmac_bcodes" value="['ohmic-test', 'probe-test 10', 'single-cut', 'cut-type', 'torch-pulse 0.5', 'framing', 'user-manual', '', '', '', '', '', '', '', '', '', '', '', '', '']"/>
<property type="eval" name="qtplasmac_bnames" value="['OHMIC\\TEST', 'PROBE\\TEST', 'SINGLE\\CUT', 'NORMAL\\CUT', 'TORCH\\PULSE', 'FRAMING', 'USER\\MANUAL', '', '', '', '', '', '', '', '', '', '', '', '', '']"/>
<property type="int" name="qtplasmacdro" value="0"/>
<property type="int" name="qtplasmacerror" value="0"/>
<property type="int" name="qtplasmacestop" value="0"/>
<property type="int" name="qtplasmacmode" value="0"/>
<property type="int" name="qtplasmacpause" value="0"/>
<property type="string" name="qtplasmacpmx" value=""/>
<property type="int" name="qtplasmacscreen" value="0"/>
<property type="int" name="qtplasmacstart" value="0"/>
<property type="int" name="qtplasmacstop" value="0"/>
<property type="float" name="s32in" value="10.0"/>
<property type="float" name="s32out" value="10.0"/>
<property type="bool" name="select_axis" value="False"/>
<property type="bool" name="select_gmoccapy" value="False"/>
<property type="bool" name="select_qtdragon" value="True"/>
<property type="bool" name="select_qtplasmac" value="False"/>
<property type="bool" name="sim_hardware" value="False"/>
<property type="int" name="spindlecarrier" value="100"/>
<property type="int" name="spindlecpr" value="100"/>
<property type="float" name="spindlefiltergain" value="0.01"/>
<property type="float" name="spindlenearscale" value="1.5"/>
<property type="float" name="spindlepwm1" value="0.2"/>
<property type="float" name="spindlepwm2" value="0.8"/>
<property type="int" name="spindlespeed1" value="100"/>
<property type="int" name="spindlespeed2" value="800"/>
<property type="float" name="stepspace" value="5000.0"/>
<property type="float" name="steptime" value="5000.0"/>
<property type="eval" name="tandemjoints" value="[]"/>
<property type="int" name="tempexists" value="0"/>
<property type="int" name="thcadenc" value="0"/>
<property type="int" name="uhomepos" value="0"/>
<property type="int" name="uhomesw" value="0"/>
<property type="float" name="uhomevel" value="1.5"/>
<property type="int" name="ulatchdir" value="0"/>
<property type="int" name="uleadscrew" value="5"/>
<property type="int" name="umaxacc" value="750"/>
<property type="int" name="umaxlim" value="200"/>
<property type="int" name="umaxvel" value="25"/>
<property type="int" name="umicrostep" value="2"/>
<property type="int" name="uminlim" value="0"/>
<property type="int" name="units" value="1"/>
<property type="int" name="upulleyden" value="1"/>
<property type="int" name="upulleynum" value="1"/>
<property type="int" name="uscale" value="0"/>
<property type="bool" name="usespindleatspeed" value="False"/>
<property type="int" name="usteprev" value="200"/>
<property type="int" name="vhomepos" value="0"/>
<property type="int" name="vhomesw" value="0"/>
<property type="float" name="vhomevel" value="1.5"/>
<property type="int" name="vlatchdir" value="0"/>
<property type="int" name="vleadscrew" value="5"/>
<property type="int" name="vmaxacc" value="750"/>
<property type="int" name="vmaxlim" value="200"/>
<property type="int" name="vmaxvel" value="25"/>
<property type="int" name="vmicrostep" value="2"/>
<property type="int" name="vminlim" value="0"/>
<property type="string" name="voltsfjumper" value="64"/>
<property type="float" name="voltsfullf" value="999.0"/>
<property type="string" name="voltsmodel" value="10"/>
<property type="int" name="voltsrdiv" value="20"/>
<property type="float" name="voltszerof" value="100.0"/>
<property type="int" name="vpulleyden" value="1"/>
<property type="int" name="vpulleynum" value="1"/>
<property type="int" name="vscale" value="0"/>
<property type="int" name="vsteprev" value="200"/>
<property type="float" name="xhomepos" value="0.0"/>
<property type="float" name="xhomesw" value="0.0"/>
<property type="float" name="xhomevel" value="-20.0"/>
<property type="int" name="xlatchdir" value="0"/>
<property type="float" name="xleadscrew" value="5.0"/>
<property type="float" name="xmaxacc" value="500.0"/>
<property type="float" name="xmaxlim" value="780.0"/>
<property type="float" name="xmaxvel" value="50.0"/>
<property type="float" name="xmicrostep" value="2.0"/>
<property type="float" name="xminlim" value="0.0"/>
<property type="float" name="xpulleyden" value="1.0"/>
<property type="float" name="xpulleynum" value="1.0"/>
<property type="float" name="xscale" value="80.0"/>
<property type="float" name="xsteprev" value="200.0"/>
<property type="float" name="yhomepos" value="0.0"/>
<property type="float" name="yhomesw" value="0.0"/>
<property type="float" name="yhomevel" value="-20.0"/>
<property type="int" name="ylatchdir" value="0"/>
<property type="float" name="yleadscrew" value="5.0"/>
<property type="float" name="ymaxacc" value="500.0"/>
<property type="float" name="ymaxlim" value="485.0"/>
<property type="float" name="ymaxvel" value="50.0"/>
<property type="float" name="ymicrostep" value="2.0"/>
<property type="float" name="yminlim" value="0.0"/>
<property type="float" name="ypulleyden" value="1.0"/>
<property type="float" name="ypulleynum" value="1.0"/>
<property type="float" name="yscale" value="80.0"/>
<property type="float" name="ysteprev" value="200.0"/>
<property type="float" name="zhomepos" value="0.0"/>
<property type="float" name="zhomesw" value="0.0"/>
<property type="float" name="zhomevel" value="10.0"/>
<property type="int" name="zlatchdir" value="0"/>
<property type="float" name="zleadscrew" value="5.0"/>
<property type="float" name="zmaxacc" value="500.0"/>
<property type="float" name="zmaxlim" value="0.0"/>
<property type="float" name="zmaxvel" value="25.0"/>
<property type="float" name="zmicrostep" value="2.0"/>
<property type="float" name="zminlim" value="-100.0"/>
<property type="float" name="zpulleyden" value="1.0"/>
<property type="float" name="zpulleynum" value="1.0"/>
<property type="float" name="zscale" value="80.0"/>
<property type="float" name="zsteprev" value="200.0"/>
</stepconf>

126
mesa.log Normal file
View File

@@ -0,0 +1,126 @@
nc@mayo-mill:~$ mesaflash --readhmid --device 7i92t
Configuration Name: HOSTMOT2
General configuration information:
BoardName : MESA7I92
FPGA Size: 20 KGates
FPGA Pins: 256
Number of IO Ports: 2
Width of one I/O port: 17
Clock Low frequency: 100.0000 MHz
Clock High frequency: 180.0000 MHz
IDROM Type: 3
Instance Stride 0: 4
Instance Stride 1: 64
Register Stride 0: 256
Register Stride 1: 256
Modules in configuration:
Module: DPLL
There are 1 of DPLL in configuration
Version: 0
Registers: 7
BaseAddress: 7000
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: WatchDog
There are 1 of WatchDog in configuration
Version: 0
Registers: 3
BaseAddress: 0C00
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: IOPort
There are 2 of IOPort in configuration
Version: 0
Registers: 5
BaseAddress: 1000
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: QCount
There are 2 of QCount in configuration
Version: 2
Registers: 5
BaseAddress: 3000
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: StepGen
There are 10 of StepGen in configuration
Version: 2
Registers: 10
BaseAddress: 2000
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: PWM
There are 2 of PWM in configuration
Version: 0
Registers: 5
BaseAddress: 4100
ClockFrequency: 180.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: LED
There are 1 of LED in configuration
Version: 0
Registers: 1
BaseAddress: 0200
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Configuration pin-out:
IO Connections for P2
DB25 pin# I/O Pri. func Sec. func Chan Sec. Pin func Sec. Pin Dir
1 0 IOPort None
14 1 IOPort PWM 0 PWM (Out)
2 2 IOPort StepGen 0 Step/Table1 (Out)
15 3 IOPort None
3 4 IOPort StepGen 0 Dir/Table2 (Out)
16 5 IOPort StepGen 4 Step/Table1 (Out)
4 6 IOPort StepGen 1 Step/Table1 (Out)
17 7 IOPort None
5 8 IOPort StepGen 1 Dir/Table2 (Out)
6 9 IOPort StepGen 2 Step/Table1 (Out)
7 10 IOPort StepGen 2 Dir/Table2 (Out)
8 11 IOPort StepGen 3 Step/Table1 (Out)
9 12 IOPort StepGen 3 Dir/Table2 (Out)
10 13 IOPort QCount 0 Quad-A (In)
11 14 IOPort QCount 0 Quad-B (In)
12 15 IOPort QCount 0 Quad-IDX (In)
13 16 IOPort None
IO Connections for P1
DB25 pin# I/O Pri. func Sec. func Chan Sec. Pin func Sec. Pin Dir
1 17 IOPort None
14 18 IOPort PWM 1 PWM (Out)
2 19 IOPort StepGen 5 Step/Table1 (Out)
15 20 IOPort None
3 21 IOPort StepGen 5 Dir/Table2 (Out)
16 22 IOPort StepGen 9 Step/Table1 (Out)
4 23 IOPort StepGen 6 Step/Table1 (Out)
17 24 IOPort None
5 25 IOPort StepGen 6 Dir/Table2 (Out)
6 26 IOPort StepGen 7 Step/Table1 (Out)
7 27 IOPort StepGen 7 Dir/Table2 (Out)
8 28 IOPort StepGen 8 Step/Table1 (Out)
9 29 IOPort StepGen 8 Dir/Table2 (Out)
10 30 IOPort QCount 1 Quad-A (In)
11 31 IOPort QCount 1 Quad-B (In)
12 32 IOPort QCount 1 Quad-IDX (In)
13 33 IOPort None

74
opis_polaczen_lpt.md Normal file
View File

@@ -0,0 +1,74 @@
# Opis Połączeń Portu LPT dla Mayo-Mill
Niniejszy dokument przedstawia zestawienie połączeń fizycznych oraz sygnałów HAL zdefiniowanych w Twojej dotychczasowej konfiguracji na podstawie plików [mayo-mill.stepconf](file:///home/cnc/Documents/7i92t/configs/hostmot2/mayo-mill.stepconf) i [mayo-mill-probebasic.hal](file:///home/cnc/Documents/7i92t/configs/hostmot2/mayo-mill-probebasic.hal).
W celu ułatwienia migracji do karty **Mesa 7i92T/TF**, w tabeli poniżej zamieszczono również przyporządkowanie tych samych pinów fizycznych do sygnałów sterownika **HostMot2 (Mesa)** przy użyciu standardowego firmware dla płyt 5-osiowych (`7i92t_5abob_encd` / `7i92t_5abobx2d`).
---
## 1. Zestawienie Sygnałów i Mapowanie na Mesa 7i92T/TF (Złącze DB25 / P2)
Poniższa tabela przedstawia przypisanie pinów złącza DB25 (portu równoległego LPT):
| Pin DB25 | Kierunek (LPT) | Sygnał HAL (`net`) | Opis Funkcji | Negacja (Invert) | Odpowiednik GPIO / Modułu na Mesa 7i92T (P2) | Pin HAL w sterowniku Mesa (`hm2_7i92`) |
| :---: | :---: | :--- | :--- | :---: | :--- | :--- |
| **1** | Wyjście | `spindle-on` | Włączenie wrzeciona (Spindle ON) | **Tak** | Mesa I/O 00 (PWM 0 / GPIO) | `hm2_7i92.0.gpio.000.out` (lub PWM) |
| **2** | Wyjście | `xdir` | Kierunek osi X (X Direction) | Nie | Mesa I/O 02 (StepGen 0 Step) | *Patrz uwaga poniżej* |
| **3** | Wyjście | `xstep` | Krok osi X (X Step) | Nie | Mesa I/O 04 (StepGen 0 Dir) | *Patrz uwaga poniżej* |
| **4** | Wyjście | `ydir` | Kierunek osi Y (Y Direction) | Nie | Mesa I/O 06 (StepGen 1 Step) | *Patrz uwaga poniżej* |
| **5** | Wyjście | `ystep` | Krok osi Y (Y Step) | Nie | Mesa I/O 08 (StepGen 1 Dir) | *Patrz uwaga poniżej* |
| **6** | Wyjście | `zdir` | Kierunek osi Z (Z Direction) | Nie | Mesa I/O 09 (StepGen 2 Step) | *Patrz uwaga poniżej* |
| **7** | Wyjście | `zstep` | Krok osi Z (Z Step) | Nie | Mesa I/O 10 (StepGen 2 Dir) | *Patrz uwaga poniżej* |
| **8** | Wyjście | — | Nieużywane | Nie | Mesa I/O 11 (StepGen 3 Step) | — |
| **9** | Wyjście | — | Nieużywane | Nie | Mesa I/O 12 (StepGen 3 Dir) | — |
| **10** | Wejście | `home-x` | Bazowanie / Krańcówka osi X | Nie | Mesa I/O 13 (GPIO) | `hm2_7i92.0.gpio.013.in` |
| **11** | Wejście | `home-y` | Bazowanie / Krańcówka osi Y | Nie | Mesa I/O 14 (QCount 0 A / GPIO) | `hm2_7i92.0.gpio.014.in` |
| **12** | Wejście | `home-z` | Bazowanie / Krańcówka osi Z | Nie | Mesa I/O 15 (QCount 0 B / GPIO) | `hm2_7i92.0.gpio.015.in` |
| **13** | Wejście | `estop-ext` | Zewnętrzny przycisk bezpieczeństwa (E-Stop) | **Tak** | Mesa I/O 16 (QCount 0 IDX / GPIO) | `hm2_7i92.0.gpio.016.in_not` |
| **14** | Wyjście | — | Nieużywane | Nie | Mesa I/O 01 (GPIO) | `hm2_7i92.0.gpio.001.out` |
| **15** | Wejście | `probe-in` | Czujnik wysokości narzędzia (Sonda/Probe) | Nie | Mesa I/O 03 (GPIO) | `hm2_7i92.0.gpio.003.in` |
| **16** | Wyjście | — | Nieużywane | Nie | Mesa I/O 05 (StepGen 4 Step / GPIO) | — |
| **17** | Wyjście | — | Nieużywane | Nie | Mesa I/O 07 (StepGen 4 Dir / GPIO) | — |
> [!WARNING]
> **Różnica w kolejności Step/Dir pomiędzy LPT a standardowym firmware Mesa:**
> * W pliku `.hal` dla LPT, pin **2** to `dir` a pin **3** to `step`.
> * W standardowym firmware Mesa dla płyt 5-osiowych (np. `7i92t_5abob_encd`), pin **2** to sprzętowy generator kroków `Step` (StepGen 0), a pin **3** to `Direction` (StepGen 0).
> * Podobnie dla osi Y (LPT: Pin 4 = Dir, Pin 5 = Step; Mesa: Pin 4 = StepGen 1 Step, Pin 5 = StepGen 1 Dir).
> * Podobnie dla osi Z (LPT: Pin 6 = Dir, Pin 7 = Step; Mesa: Pin 6 = StepGen 2 Step, Pin 7 = StepGen 2 Dir).
>
> **Rozwiązanie:** Przy przejściu na kartę Mesa 7i92T przy użyciu standardowego firmware konieczna będzie zamiana miejscami przewodów sygnałowych Step i Dir dla poszczególnych osi na wejściach sterowników silników krokowych (lub wykonanie własnego firmware FPGA z zamienioną kolejnością wyprowadzeń).
---
## 2. Szczegóły Konfiguracji Sygnałów Wejściowych (Krańcówki i Probe)
Wszystkie wejścia (krańcówki i probe) są wejściami typu logicznego. W sterowniku LinuxCNC HAL odpowiadają im piny `.in` lub `.in_not` (gdy sygnał jest negowany w konfiguracji).
### Bazowanie osi (Home switches):
* **Oś X:** Sygnał `home-x` pobierany z fizycznego pinu **10** portu LPT (`parport.0.pin-10-in`).
* W Mesa: pin HAL `hm2_7i92.0.gpio.013.in` połączony z `joint.0.home-sw-in`.
* **Oś Y:** Sygnał `home-y` pobierany z fizycznego pinu **11** portu LPT (`parport.0.pin-11-in`).
* W Mesa: pin HAL `hm2_7i92.0.gpio.014.in` połączony z `joint.1.home-sw-in`.
* **Oś Z:** Sygnał `home-z` pobierany z fizycznego pinu **12** portu LPT (`parport.0.pin-12-in`).
* W Mesa: pin HAL `hm2_7i92.0.gpio.015.in` połączony z `joint.2.home-sw-in`.
### Przycisk bezpieczeństwa (E-Stop):
* Sygnał `estop-ext` podłączony do pinu **13** portu LPT w trybie zanegowanym (`parport.0.pin-13-in-not`).
* W Mesa: pin HAL `hm2_7i92.0.gpio.016.in_not` połączony z `iocontrol.0.emc-enable-in`.
### Czujnik wysokości (Probe-in):
* Sygnał `probe-in` podłączony do pinu **15** portu LPT (`parport.0.pin-15-in`).
* W Mesa: pin HAL `hm2_7i92.0.gpio.003.in` połączony z `motion.probe-input`.
---
## 3. Parametry Czasowe Kroków (Step timings)
Zgodnie z plikiem [mayo-mill.stepconf](file:///home/cnc/Documents/7i92t/configs/hostmot2/mayo-mill.stepconf), Twoje sterowniki wymagają następujących czasów sygnału sterującego:
* **Czas trwania kroku (Steptime):** 5000 ns (5 µs)
* **Odstęp między krokami (Stepspace):** 5000 ns (5 µs)
* **Czas ustalenia kierunku (Dir Setup):** 20000 ns (20 µs)
* **Czas podtrzymania kierunku (Dir Hold):** 20000 ns (20 µs)
Przy konfiguracji generatorów Mesa StepGen w pliku `.hal`, wartości te podaje się w nanosekundach bezpośrednio do parametrów `stepgen.X.steplen`, `stepgen.X.stepspace`, `stepgen.X.dirsetup`, `stepgen.X.dirhold`.

28
test_inputs.hal Normal file
View File

@@ -0,0 +1,28 @@
# Testowy plik HAL do weryfikacji wejsc karty Mesa 7i92T/TF
# Uruchomienie: halrun -i -f test_inputs.hal
# 1. Utworzenie watku czasu rzeczywistego (servo-thread, 1ms)
loadrt threads name1=servo-thread period1=1000000
# 2. Zaladowanie sterownika Mesa z wylaczonymi enkoderami (num_encoders=0)
# Dzieki temu piny 10, 11, 12 beda dzialac jako zwykle GPIO
loadrt hostmot2
loadrt hm2_eth board_ip="192.168.1.121" config="num_encoders=0 num_stepgens=0"
# 3. Przypisanie funkcji odczytu i zapisu karty do watku
addf hm2_7i92.0.read servo-thread
addf hm2_7i92.0.write servo-thread
# 4. Utworzenie sygnalow testowych dla pieciu wejsc portu DB25 (P2)
net test-pin10 <= hm2_7i92.0.gpio.013.in
net test-pin11 <= hm2_7i92.0.gpio.014.in
net test-pin12 <= hm2_7i92.0.gpio.015.in
net test-pin13 <= hm2_7i92.0.gpio.016.in
net test-pin15 <= hm2_7i92.0.gpio.003.in
# 5. Uruchomienie watku
start
# Po uruchomieniu mozesz w konsoli halrun wpisac np.:
# show pin hm2_7i92.0.gpio
# watch pin hm2_7i92.0.gpio.013.in