25112101 添加PLC测堵气缸控制

This commit is contained in:
moxiliang
2025-11-21 14:23:37 +08:00
parent 76648e7eb4
commit ec2d161816
24 changed files with 293 additions and 216 deletions

View File

@@ -174,5 +174,45 @@ namespace SLC1_N
{
Signal_PLC_WriteCoil = null;
}
// CH1测堵气缸伸出/缩回
private void bt_M1045_True_Click(object sender, EventArgs e)
{
Signal_PLC_WriteCoil?.Invoke(1045, true);
}
private void bt_M1045_False_Click(object sender, EventArgs e)
{
Signal_PLC_WriteCoil?.Invoke(1045, false);
}
// CH2测堵气缸伸出/缩回
private void bt_M1046_True_Click(object sender, EventArgs e)
{
Signal_PLC_WriteCoil?.Invoke(1046, true);
}
private void bt_M1046_False_Click(object sender, EventArgs e)
{
Signal_PLC_WriteCoil?.Invoke(1046, false);
}
// CH3测堵气缸伸出/缩回
private void bt_M1047_True_Click(object sender, EventArgs e)
{
Signal_PLC_WriteCoil?.Invoke(1047, true);
}
private void bt_M1047_False_Click(object sender, EventArgs e)
{
Signal_PLC_WriteCoil?.Invoke(1047, false);
}
// CH4测堵气缸伸出/缩回
private void bt_M1048_True_Click(object sender, EventArgs e)
{
Signal_PLC_WriteCoil?.Invoke(1048, true);
}
private void bt_M1048_False_Click(object sender, EventArgs e)
{
Signal_PLC_WriteCoil?.Invoke(1048, false);
}
}
}