6. Function blocks
6.1 Manufacturer function blocks
6.1.7.9 NC - Numerical converter
General
easyE4base devices provide 32 numerical conversion function
blocks NC01...NC32.
A decimal number can be represented either as being binary-
coded or BCD-coded. Depending on the operating mode you
select, this function block will convert BCD-coded numbers to
binary-coded numbers (BCD mode) or vice verse, i.e., binary-
coded numbers to BCD-coded numbers (BIN mode).
Operating principle
EN=1 enables the function block so that the number conversion will be carried out
every cycle. The following applies when using LD, FBD, ST: As soon as there is a
changed value at I1, the new conversion value will appear at output QV. When using
EDP, the converted value will be provided until the next cycle.
The maximum data size that can be connected to the inputs/outputs is a double word
(32 bits). A BCD-coded number requires four bits (a nibble). This means that the biggest
BCD-coded numbers that can be converted are 7-digit BCD-coded numbers, since the
most significant nibble is used for the sign.
0000 means +
1111 means –
EN=0 initiates a reset in which the output QV is reset to 0.
The function block and its parameters
Function block inputs
Description
Note
(Bit)
EN
1: Activates the function block.
(DWord)
I1
Operand to be converted
Integer value range,
decimal not all the way due to BCD lim-
itation
BCD: -9 999 999 … +9 999 999
Decimal: -161 061 273 … +161 061 273
Assigning operands
You can assign the following operands to the function block inputs that are numeric
inputs.
easyE4
11/18 MN050009 EN www.eaton.com
397
Summary of Contents for easyE4 series
Page 1: ...Manual 11 18 MN050009 EN easyE4 Manual...
Page 4: ......
Page 16: ...12 easyE4 11 18 MN050009 EN www eaton com...
Page 22: ...0 1 About this manual 18 easyE4 11 18 MN050009 EN www eaton com...
Page 169: ...easyE4 11 18 MN050009 EN www eaton com 165...
Page 490: ...7 System settings 7 16 Time and Date setting 486 easyE4 11 18 MN050009 EN www eaton com...
Page 520: ...9 easyE4 inside 9 7 NET network 516 easyE4 11 18 MN050009 EN www eaton com...
Page 570: ...11 Connection to other devices 11 6 E mail function 566 easyE4 11 18 MN050009 EN www eaton com...
Page 578: ...12 Faults 12 4 Functionality of the NET faulty 574 easyE4 11 18 MN050009 EN www eaton com...
Page 582: ...13 Maintenance 13 3 Storage transport and disposal 578 easyE4 11 18 MN050009 EN www eaton com...
Page 594: ...590 easyE4 11 18 MN050009 EN www eaton com...