質問編集履歴
1
a
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,20 +28,20 @@
|
|
28
28
|
|
29
29
|
host = ****
|
30
30
|
|
31
|
-
|
32
|
-
|
33
31
|
port = ****
|
34
32
|
|
35
33
|
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
36
34
|
|
37
35
|
client.connect((host, port))
|
38
36
|
|
39
|
-
|
40
|
-
|
41
|
-
M492に1の信号を書き込み
|
37
|
+
#M492に1の信号を書き込み
|
42
38
|
|
43
39
|
cmd=b"\x50\x00\x00\xFF\xFF\x03\x00\x0D\x00\x00\x00\x01\x14\x01\x00\xEC\x01\x00\x90\x01\x00\x10"
|
44
40
|
|
45
41
|
client.send(cmd)
|
46
42
|
|
47
43
|
res=client.recv(1024)
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
```
|