求助,如何编写该程序

已锁定

刹那芳华逝

西门子1847工业学习平台

  • 帖子

    80
  • 精华

    0
  • 被关注

    4

论坛等级:侠客

注册时间:2011-03-19

普通 普通 如何晋级?

求助,如何编写该程序

1014

5

2012-04-01 11:04:49

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转换过来,但是初学,好多指定都不怎么会用,求诸位大侠指点指点。
求助,如何编写该程序 已锁定
编辑推荐: 关闭

请填写推广理由:

本版热门话题

SIMATIC S7-300/400

共有54654条技术帖

相关推荐

热门标签

相关帖子推荐

guzhang

恭喜,你发布的帖子

评为精华帖!

快扫描右侧二维码晒一晒吧!

再发帖或跟帖交流2条,就能晋升VIP啦!开启更多专属权限!

  • 分享

  • 只看
    楼主

top
X 图片
您收到0封站内信:
×
×
信息提示
很抱歉!您所访问的页面不存在,或网址发生了变化,请稍后再试。