WINCC函数 下载本文

1.切换画面按钮 ....................................................................................................................................................................................................................................... 2 2.设定BIT变量当前值 ............................................................................................................................................................................................................................. 2 3.取当前登陆用户 ..................................................................................................................................................................................................................................... 2 4.取硬盘剩余容量 ..................................................................................................................................................................................................................................... 3 5.以图像模式显示(灯、钮)等 ............................................................................................................................................................................................................ 5 6.自定义对象 ............................................................................................................................................................................................................................................. 6 7.OK返回值 .............................................................................................................................................................................................................................................. 19 8.小键盘 ................................................................................................................................................................................................................................................... 19 9.PID传递页面C脚本 ............................................................................................................................................................................................................................ 23 10.将变量B的值赋给变量A(无符号16位) ......................................................................................................................................................................................... 25 11.乒乓键 ................................................................................................................................................................................................................................................. 26 12.C脚本、脉冲延时 .............................................................................................................................................................................................................................. 27 13.CONFIGURATION TOOOL ....................................................................................................................................................................................................................... 28 14.用“笔组”实现一张页面做趋势 ...................................................................................................................................................................................................... 28 15.滑竿,SLIDER CONTROL的使用 ......................................................................................................................................................................................................... 34 16.切换语言 ............................................................................................................................................................................................................................................. 35

1.切换画面按钮

#include \

void OnLButtonDown(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName, UINT nFlags, int x, int y) {

SetPictureName(lpszPictureName,\ //设定PictureWindow1填充为页面HS_MODE.Pdl SetTagChar(\操作模式\//Return-Type: BOOL //设定字符串变量TT当前值为“操作模式”以显示页眉 }

2.设定BIT变量当前值

SetTagBit(\3.取当前登陆用户 @CurrentUser

4.取硬盘剩余容量

5.以图像模式显示(灯、钮)等

智能对象\\状态显示

选透明颜色