Download CDE/CDB/ CDF3000
Transcript
7 User programming Assignment of a floating point variable with limitation to +/- 2147483647 no roundings 1 with flag: SET Hxxx = Mxxx 2 with counter status: SET Hxxx = Cyy 3 with timer status: SET Hxxx = Zxx via calculation - direct: 2) SET SET SET SET SET Hxxx Hxxx Hxxx Hxxx Hxxx +z -z *z :z % z z ≠ 4 Addition Subtraction Multiplication 0 1)Division Modulo 5 via displacement with constant: to the right: Division Hxxx by 2z SET Hxxx >> z 6 to the left: Multiplication Hxxx with 2z SET Hxxx<< z 7 Calculation via second variable - direct: 2) SET SET SET SET SET Hxxx Hxxx Hxxx Hxxx Hxxx + * : % Hyyy Hyyy Hyyy Hyyy Hyyy Addition Subtraction Multiplication Hyyy ≠ 0 1) Division Modulo Calculation via displacement with second variable: 8 A Right: SET Hxxx >> Hyyy Division Hxxx by 2Hyyy Left: SET Hxxx << Hyyy Multiplication Hxxx with 2Hyyy Calculation by means of absolute-value generation: SET Hxxx = ABS Hyyy 1) Application Manual CDE/CDB/CDF3000 z or Hyyy = 0 is not permitted (division by 0)! (error message will be triggered). 7-29 DE EN FR