Modifying Constants to type ‘REAL’
햲
Open the Body of CENTIGRADE1 and modify the constants to ‘Floating Point’ types (i.e.
32.0) and the output variable name to read as follows:
NB: Remember to alter CENTIGRADE to CENTIGRADE1.
햳
Close editors and save all changes.
Placing the “REAL” number Function ‘CENTIGRADE1’ onto the working POU “Process”
햲
In the GVL editor, create two new variables thus:
햳
Open the Body of POU “Process” and place the Function CENTIGRADE1 into it as shown
below:
NOTE
REAL numbers use 2 consecutive Registers (32 Bits) and are stored in a special portable
IEE format, hence the allocation in the above GVL example.
6 - 12
MITSUBISHI ELECTRIC
Function and Function Blocks
Functions
Summary of Contents for FX2N-32CAN
Page 1: ...MITSUBISHI ELECTRIC FACTORY AUTOMATION Programmable Logic Controllers GX IEC Developer ...
Page 2: ......
Page 4: ......
Page 6: ......
Page 10: ...IV MITSUBISHI ELECTRIC ...
Page 18: ...Modular PLC Training Hardware Course Overview and Requirements 1 2 MITSUBISHI ELECTRIC ...
Page 176: ...Device Edit 8 4 MITSUBISHI ELECTRIC ...
Page 190: ...Assigning DUT Variables to Function Blocks Data Unit Types DUT 10 10 MITSUBISHI ELECTRIC ...
Page 198: ...Array Example Single Dimension Array Arrays 11 8 MITSUBISHI ELECTRIC ...
Page 219: ...Sequential Function Chart SFC SFC Elements Training Manual GX IEC Developer 14 3 ...
Page 230: ...Structured Text Program Example IEC Structured Text 16 4 MITSUBISHI ELECTRIC ...
Page 278: ...PLC Components Glossary Appendix A 18 MITSUBISHI ELECTRIC ...
Page 283: ......