Hi, the answer is late, but I hope nevertheless useful for you. First of all: Use the integrated help in CoDeSys, it contains the answers for both questions:
You can use the conversion operators REAL_TO_BOOL and BOOL_TO_REAL. If you use the input assistant (F2 hotkey) all conversion operators are listed.
Depending on the controller you use there is a special system library SysLibPlcCtrl.lib which offers a function SysResetPlcProgram with options for warm, cold or hard reset.
I hope this will help you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am new user of this CoDeSys. So I have 2 questions about it.
Is there any possibility to change REAL type to BOOL type or viceversa? If there is no possibility, then what should I do?
How to use RESET funtion in CoDeSys?because I should make a program that consist of RESET function.
I would be very helpful for any help,
Davre
Hi, the answer is late, but I hope nevertheless useful for you. First of all: Use the integrated help in CoDeSys, it contains the answers for both questions:
You can use the conversion operators REAL_TO_BOOL and BOOL_TO_REAL. If you use the input assistant (F2 hotkey) all conversion operators are listed.
Depending on the controller you use there is a special system library SysLibPlcCtrl.lib which offers a function SysResetPlcProgram with options for warm, cold or hard reset.
I hope this will help you.