PLC.connect(PLC_IP, rack=0, slot=1) returnPLC PLC=plc_connection() PLC.read_area()方法從PLC中讀取指定區(qū)域的數(shù)據(jù)。 1200表示DB塊的編號(hào),90表示DB塊內(nèi)的偏移地址,4表示要讀取的字節(jié)數(shù)。 1 2 data2=PLC.db_read(db_number=1200, start=90, size=4) ...
www.dbjr.com.cn/article/2760...htm 2025-5-24