Changed default for motorConnected and updated manual
Some checks failed
Test And Build / Lint (push) Failing after 3s
Test And Build / Build (push) Failing after 5s

This commit is contained in:
2026-01-20 11:43:26 +01:00
parent 7e7b8f486c
commit 5efb94f83e
6 changed files with 28 additions and 8 deletions

View File

@@ -42,7 +42,7 @@ To use these scripts on Windows, prefix the Python 3 executable:
C:/path/to/python3.exe C:/path/to/mastermacs_repo/utils/decodeStatus.py 1234
```
### Usage in IOC shell
### IOC startup script
masterMacs exposes the following IOC shell functions:
- `masterMacsController`: Create a new controller object.
@@ -50,13 +50,17 @@ masterMacs exposes the following IOC shell functions:
The full masterMacsX.cmd file looks like this:
```
```bash
# Define the name of the controller and the corresponding port
epicsEnvSet("NAME","mcu")
epicsEnvSet("ASYN_PORT","p$(NAME)")
# Create the TCP/IP socket used to talk with the controller. The socket can be adressed from within the IOC shell via the port name
drvAsynIPPortConfigure("$(ASYN_PORT)","172.28.101.24:1025")
# Create the TCP/IP socket used to talk with the controller. The socket can be
# adressed from within the IOC shell via the port name
# We do not use the standard asyn port driver here, but a PMAC-specific one
# which enables the usage of StreamDevices for
# communicating with the controller directly.
masterMacsAsynIPPortConfigure("$(ASYN_PORT)","172.28.101.24:1025")
# Create the controller object with the defined name and connect it to the socket via the port name.
# The other parameters are as follows: