philips-cnc6600-interpreter/bin/app.php

17 lines
358 B
PHP
Raw Normal View History

2020-05-08 00:37:29 +02:00
<?php
use Automata\Machine;
use Automata\ToolData;
2020-05-08 00:37:29 +02:00
require_once __DIR__ . '/../vendor/autoload.php';
$machine = new Machine();
$machine->TM->write(new ToolData(1, 5500, 2));
$machine->TM->write(new ToolData(2, 3000, 61379));
2020-05-08 00:37:29 +02:00
(new ProgramLoader)->loadPrograms($machine);
$machine->loadProgram(9002);
while ($machine->PPMC->ready()) {
$machine->step();
}