Skip to main content

Starting and stopping the ink system

Goal: let the PLC start the printer's ink system when the line starts, stop it at the end of the shift, and abort a print on an emergency.

Printer setup​

AddressBind toActionAuto-clear
16Actionprinter.NoLabel.start_requestOff
17Actionprinter.NoLabel.stop_requestOff
18Actionprinter.NoLabel.abort_printOn

The ink system actions are available on Marvin1 printers. Use Settings → I/O → Modbus, or the Aurora API's listGpioActions, to see the actions your printer has.

PLC​

Coils 16 and 17 latch: they run their action when they change from 0 to 1, and keep the value. Drive them from a one-shot, so the coil follows the PLC's command:

  1. On the rising edge of "start line", write 1 to coil 16.
  2. Write 0 to coil 16 again, for example in the next cycle, so the next start can run the action.

Coil 18 is auto-clear: every write of 1 aborts the print, and the coil always reads 0. Write it once when the emergency occurs.

To know whether the ink system started, check the status signals, for example printer.NoLabel.ready, as in Monitoring printer status. The action coil only shows that the command was sent.

Try it​

from common import *

check(client.write_coil(16, True)) # start the ink system
check(client.write_coil(16, False)) # re-arm

print(check(client.read_coils(18, count=1)).bits[0]) # False
check(client.write_coil(18, True)) # abort the current print
print(check(client.read_coils(18, count=1)).bits[0]) # False, auto-clear