wildswing
Member
Just curious. Does anyone know the specifics of how the PLC5 converts a single floating point to two integers and back using the COP command? Is it some standard formula?
From floating point to integer: SOR COP #F8:0 #N7:0 2 EOR
and from integer back to floating point: SOR COP #N7:0 #F8:1 1 EOR
From floating point to integer: SOR COP #F8:0 #N7:0 2 EOR
and from integer back to floating point: SOR COP #N7:0 #F8:1 1 EOR