发布于 2009-10-12 08:07:24
5楼
2.7.28 PI services
Des cription
The PI_SERVICE function can be used to start PI Services (Program Invocation Services)
from the PLC in the NC area.
General programming
Syntax: PI_SERVICE (service, n parameters )
Des cription: Executes PI service
Parameters: Service PI service identifier
n parameters List of n parameters of PI Service.
Individual parameters are separated by commas.
Example
PRESS (HS2)
PI_SERVICE("_N_CREATO",55)
END_PRESS
PRESS(VS4)
PI_SERVICE("_N_CRCEDN",17,3)
END_PRESS
Starting OEM services
The PI_START command executes a PI service based on OEM documentation.
Programming
Syntax: PI_START("Transfer string" )
Des cription: Executes PI service
Parameters: "Transfer string" Unlike the OEM documentation, the transfer string should be entered in inverted commas.
Example
PI_START("/NC,001,_N_LOGOUT")
Note
Channel-dependent PI Services always refer to the current channel.
PI services of the tool functions (TO area) always refer to the TO area that is assigned to the
current channel.
具体的资料就是上面的文档说明的。因为这个我也没用过,只是看看,所以也不是太理解,不好意思
那一天
我不得已上路
为不安分的心
为自尊的生存
为自我的证明
路上的辛酸已融进我的眼睛
心灵的困境已化作我的坚定