![]() We could also use COP to convert from floating point to integer and vice versa but if your destination file cannot accept “#” (as such for PID1:6.SP), you will not be able to use the COP block. In the example above, the integer in N22:200 is converted to a floating point using MOV (into PD16:6.SP, PID setpoint) ![]() ![]() Use the MOV function block as shown below. In the example above, floating point in F8:21 is converted and stored in N4:14 using the CPT block.Īnd N4:14 is used in PID block as PID blocks in RSLogix only accepts integers. Use the CPT function block as shown below. convert integer to float and vice versa in RSLogix5. This is a task each and every PLC5 programmer (in RSLogix5) has to do at least once in their programming life….
0 Comments
Leave a Reply. |