Use this P1 reference for TouchWin page switching, PLC-controlled page changes, current-screen reporting, button controls, indicator buttons, and moving/rotating animation.
Source anchors:
交互, 控制画面变换, 报告当前画面号.4-3-7 画面跳转, password/permission and enable/display control.4-2-10 平移动画, 4-2-11 旋转动画, material/visibility behavior.OUT to an HMI-operated bit.| Method | Best for | Notes |
|---|---|---|
画面跳转 component |
Operator button changes page on HMI. | Can set target screen number, password mode, display control, enable control, and delay. |
System setting 交互 -> 控制画面变换 |
PLC controls HMI page. | HMI reads a register; value equals target screen number. After jump, TouchWin clears the register to 0. |
交互 -> 报告当前画面号 |
PLC knows current HMI page. | HMI writes current screen number to a register, useful for sequence/diagnostics. |
| Function key/function area | Multi-action button behavior. | Use when a button needs several HMI actions, but keep PLC writes explicit and documented. |
Recommended allocation:
| Address | Direction | Purpose |
|---|---|---|
D100 |
PLC -> HMI | Screen command register; value is target page number. |
D101 |
HMI -> PLC | Current screen report register. |
M100 |
HMI/PLC command | Request page change, edge driven. |
M101 |
PLC internal | One-shot or transition lock. |
TouchWin steps:
交互 page.控制画面变换.D100.报告当前画面号 and set a different register, for example D101.PLC-side rule:
0 after the jump.Example ladder plan:
| Network | Logic |
|---|---|
| Page request | HMI/PLC event sets M100. |
| One-shot | M100 rising edge writes K10 to D100 for page 10. |
| Clear request | Reset M100 after command or after D101 = K10. |
| Timeout alarm | If D101 does not become K10 within a timeout, set an HMI communication/screen alarm bit. |
Use 部件 -> 操作键 -> 画面跳转 or the component toolbar:
画面跳转 component.跳转画面号.主画面, 参数, 报警, 手动, 维护.| Component | Use | Caution |
|---|---|---|
按钮 |
Write/toggle/set/reset a bit. | It does not display final bit state by itself. |
指示灯按钮 |
Operate one bit and display a bit state. | Operation object and monitor object can be separated; prefer separating command and status. |
指示灯 |
Display a bit/register state. | Use for actual PLC status, not command request alone. |
Important rule from the TouchWin manual: when the HMI operates a lower-device bit, avoid using a direct PLC OUT instruction on the same bit. Use a command bit from HMI and a separate PLC-controlled status/output bit.
Use either object X/Y animation or a 平移动画 component.
Some objects expose animation settings:
横向移动: display X coordinate = original X + register value.纵向移动: display Y coordinate = original Y + register value.Recommended for simple cart/tank/slider motion:
| Address | Meaning |
|---|---|
D200 |
X offset in pixels or engineering-scaled display units. |
D201 |
Y offset if needed. |
M200 |
Animation enable. |
M201 |
Reset animation position. |
PLC pattern:
D200.D200 between minimum and maximum display offsets.D200 to zero on homing/reset or page entry.平移动画Use when the object should follow a drawn path.
平移动画: 部件 -> 动画 -> 平移动画.许可信号, 复位信号, and 重复 as needed.旋转动画Use for fan/motor/agitator-style display:
旋转动画.| PLC/HMI address | Purpose |
|---|---|
M300 |
Cart run command. |
M301 |
Cart moving right status. |
M302 |
Cart moving left status. |
M303 |
Cart home sensor status. |
M304 |
Cart fault status. |
D300 |
Cart displayed X offset. |
D301 |
Cart actual position or simulated position. |
HMI:
D300.PLC:
D300.D300 while moving and reset at ends.0 after page jump.OUT.