File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 70702 RC_IF_NAME STRING[16]
717120 BatchName STRING[32]
727254 BatchID DWORD
73- 58 Occupied BOOL # Bezet door Koole PA
73+ 58.0 Occupied BOOL # Bezet door Koole PA
747460 Status INT # Status
757562 SubStatus INT # Substatus
767664 Opdrachtstatus INT # Opdrachtstatus (zie enum)
Original file line number Diff line number Diff line change @@ -153,11 +153,10 @@ def read_tank_db():
153153
154154 tank_data = client .db_upload (73 )
155155 db73 = s7util .db .DB (tank_data , tank_rc_if_db_layout ,
156- 238 , 10 , id_field = 'RC_IF_NAME' )
156+ 238 , 2 , id_field = 'RC_IF_NAME' )
157157 print len (db73 )
158158 for x , (name , row ) in enumerate (db73 ):
159- print row ['RC_IF_NAME' ]
160- print 'M' , row ['Massa' ]
159+ print row
161160
162161
163162read_tank_db ()
Original file line number Diff line number Diff line change @@ -214,8 +214,8 @@ def __repr__(self):
214214
215215 string = ""
216216 for var_name , (index , _type ) in self ._specification .items ():
217- string = '%s\n %-15s % 10s' % (string , var_name ,
218- self .get_value (index , _type ))
217+ string = '%s\n %-20s %- 10s' % (string , var_name ,
218+ self .get_value (index , _type ))
219219 return string
220220
221221 def unchanged (self , _bytearray ):
You can’t perform that action at this time.
0 commit comments