I would like to request your help in writing the following variables(strings) from a Raspberry Pi(python program) to CPU S7-1200
. I have compiled and installed Snap7 python
.What are the changes I need to do for writing the variables (pc, prob,Xi, Yi,, Xx, Yx, Xmi,Ymi)
The Python code is as follows:
import snap7
import struct
from time import sleep
from snap7.util import *
plc=snap7.client.Client()
pc= "Narayan"
prob="90%"
Xi = "0"
Yi = "10"
Xx = "20"
Yx = "30"
Xmi=10
Ymi=15
plc.connect (’10.10.54.2’,0,1)
These variables (pc, prob,Xi, Yi,, Xx, Yx, Xmi,Ymi)
are updated continuously from my actual program .