From 670a733b2202558a0970d225abd7088f6d68a01e Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 4 May 2015 23:32:24 +0200 Subject: Status Word 2 ? --- cutter.go | 5 +++++ main.go | 1 + 2 files changed, 6 insertions(+) diff --git a/cutter.go b/cutter.go index de12352..be1a40c 100644 --- a/cutter.go +++ b/cutter.go @@ -433,3 +433,8 @@ func (c Cutter) ReadUpperRight() Point { c.Send("U") return c.parsePoint() } + +func (c Cutter) StatusWord() (string, error) { + c.Send("@") + return c.readResponse() +} diff --git a/main.go b/main.go index eca1d9b..05160e2 100644 --- a/main.go +++ b/main.go @@ -27,5 +27,6 @@ func main() { fmt.Println("Offset", c.ReadOffset()) fmt.Println("Upper Right", c.ReadUpperRight()) fmt.Println("Lower Left", c.ReadLowerLeft()) + fmt.Println(c.StatusWord()) } -- cgit v1.2.3