发表于:2006-03-03 16:45:00
7楼
TO: hjl1234
语句的意思:在VB4内存放26条已编辑的要在人机界面上显示的 内容。S7-200在编辑信息条时,会自动腾出一些数据寄存器用来显示用户编辑的内容。一般在软件上点击“数据块”即可看到。
例如:
VB0 'TD' //
VB2 16#10 //Set Language to English, set Update to as fast as possible
VB3 16#01 //Set the display to 40 character mode; Enter key V3.1; Up key V3.2; Down key V3.3;
VB4 6 //Set the number of messages
VB5 16#00 //Set the Function Keys notification bits to M0.0 - M0.7, F-Keys configured to set M-bits
VW6 32 //Set the starting address for messages to VB32
VW8 14 //Set the starting address for message enable bits to VB14
//MESSAGE 1
//Message Enable Bit V14.7
VB32 ' 以前的首界面…… ' //
//MESSAGE 2
//Message Enable Bit V14.6
VB72 '欢迎你,输入密码:' //
VB101 16#10 //Edit Notification V101.2; No Acknowledgement; No. Password;
VB102 16#C0 //Unsigned Double Word; 0 Digits to the right of the decimal; Automatic data edit
VD103 16#00000000 //Embedded Data Value: Move data for display here.
VB107 ' ' //
//MESSAGE 3
//Message Enable Bit V14.5
VB112 ' ' //
//MESSAGE 4
//Message Enable Bit V14.4
VB152 '测试时间到,请联系厂家 ' //
//MESSAGE 5
//Message Enable Bit V14.3
VB192 ' ' //
//MESSAGE 6
//Message Enable Bit V14.2
VB232 ' ' //
//END TD200_BLOCK ------------------------------
TO:一品黄山
不需要密码的,在”PLC“的目录内,点击“清除”。把你的PLC内的程序全部清除后,在“系统块”内选择“密码”一览,选中“全部选项(1级)”即可,以后输入就不用密码了。