teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

情報の追記

2021/06/10 08:09

投稿

ken248
ken248

スコア24

title CHANGED
File without changes
body CHANGED
@@ -4,8 +4,15 @@
4
4
  comandD200、comandM100 等を同時取得したいです。
5
5
 
6
6
  どうぞよろしくお願い致します。
7
+ 参考にさせていただいたサイトです。
8
+ PLCへの指示内容も記載があります。
9
+ https://plc-memo.com/maketool5/
10
+ ![イメージ説明](976e9cb876b0fee7a7b04ff5fffb2093.jpeg)
7
11
 
12
+ PLCはキーエンスのKV7500です。
8
13
 
14
+
15
+
9
16
  ```python
10
17
  import logging
11
18
  import socket
@@ -28,6 +35,7 @@
28
35
  #comandD200 = "RDS DM200.U 200\r"
29
36
  #comandM100 = "RD MR200.S 3\r"
30
37
 
38
+
31
39
  ascii_comandd100 = client.send(comandD100.encode("ascii"))
32
40
  #ascii_comanm100 = client.send(comandM100.encode("ascii"))
33
41
  #ascii_comand200 = client.send(comandD200.encode("ascii"))