For i = 3 To 12
If Cells(i + 1, 3) < Cells(i, 3) Then
Cells(i + 1, 3) = Cells(i, 3)
End If
If speed > Cells(i, 3) Then
speed1_l = speed1_h
speed1_h = Cells(i + 1, 3)
temp_l = temp_h
temp_h = Cells(i + 1, 13)
p_speed_l = p_speed_h
p_speed_h = Cells(i + 1, 14)
End If
If Cells(i + 1, 4) < Cells(i, 4) Then
Cells(i + 1, 4) = Cells(i, 4)
End If
If speed > Cells(i, 4) Then
speed2_l = speed2_h
speed2_h = Cells(i + 1, 4)
fir_pres_l = fir_pres_h
fir_pres_h = Cells(i + 1, 15)
sec_pres_l = sec_pres_h
sec_pres_h = Cells(i + 1, 16)
fir_cool_l = fir_cool_h
fir_cool_h = Cells(i + 1, 17)
sec_cool_l = sec_cool_h
sec_cool_h = Cells(i + 1, 18)
End If
Next i
以上程序为EXCEL文件中的宏定义,求诸位大侠指点一下,如何转换为S7 300程序,我想用SCL或者STL转换过来,但是初学,好多指定都不怎么会用,求诸位大侠指点指点。