philips-cnc6600-interpreter/bin/app.php

16 lines
281 B
PHP
Raw Normal View History

2020-05-08 00:37:29 +02:00
<?php
use Automata\NC;
use Automata\ToolData;
2020-05-08 00:37:29 +02:00
require_once __DIR__ . '/../vendor/autoload.php';
$nc = new NC();
$nc->TM->write(new ToolData(1, 5500, 2));
$nc->TM->write(new ToolData(2, 3000, 61379));
(new ProgramLoader)->loadPrograms($nc);
$nc->loadProgram(9002);
$nc->run();
2020-05-08 00:37:29 +02:00