1
Support Questions / Change colors on Chart with logging
« Last post by stephen.crouch on March 27, 2024, 12:02:44 PM »Is it possible to change the plot and background colors on the chart with logging?
The PLCAddressSelectColor2 works on a boolean value, so you can program the comparison in your PLC to set a boolean value.
The other option is to use some code:
- Add a DataSubscriber to the form
- Set PLCAddressValue to the register you want to use
- Double click the DataSubscriber to get back to code
- Enter this code:Code: [Select]if e.Values(0)=101 then
BasicIndicator1.ForColor=Color.Red
else
BasicIndicator1.ForColor=Color.White
end if
if e.Values(0)=101 then
BasicIndicator1.ForColor=Color.Red
else
BasicIndicator1.ForColor=Color.White
end if