Foundation Logic View Instruction sheet

LOGI VI EWME
MAY / 05
Version 8
FOUNDATION

web: www.smar.com
smar
Specifications and information are subject to change without notice.
For the latest updates, please visit the SMAR website above.
BRAZIL
Smar Equipamentos Ind. Ltda.
Rua Dr. Antonio Furlan Jr., 1028
Sertãozinho SP 14170-480
Tel.: +55 16 3946-3510
Fax: +55 16 3946-3554
e-mail:insales@smar.com.br
CHINA
Smar China Corp.
3 Baishiqiao Road, Suite 30233
Beijing 100873, P.R.C.
Tel.:+86 10 6849-8643
Fax: +86-10-6894-0898
e-mail: info@smar.com.cn
FRANCE
Smar France S. A. R. L.
42, rue du Pavé des Gardes
F-92370 Chaville
Tel.: +33 1 41 15-0220
Fax: +33 1 41 15-0219
NETHERLANDS
Smar Nederland
De Oude Wereld 116
2408TM Alphen aan den Rijn
Tel: +31 172 494 922
Fax: +31 172 479 888
e -mail : info@smarnederland.nl
GERMANY
Smar GmbH
Rheingaustrasse 9
55545 Bad Kreuznach
Germany
Tel: + 49 671-794680
Fax: + 49 671-7946829
e-mail: infoservice@smar.de
MEXICO
Smar Mexico
Cerro de las Campanas #3 desp 119
Col. San Andrés Atenco
Tlalnepantla Edo. Del Méx - C.P. 54040
Tel.:+53 78 46 00 al 02
Fax: +53 78 46 03
e-mail: ventas@smar.com
SINGAPORE
Smar Singapore Pte. Ltd.
315 Outram Road
#06-07, Tan Boon Liat Building
Singapore 169074
Tel.: +65 6324-0182
Fax: +65 6324-0183
UNITED KINGDOM
Smar UK Ltd
3, Overhill Road - Cirencester
Gloucestershire -
GL7 2LG
Tel: +44 (0)797 0094138
Fax: +44 (0)797 4747502
e-mail: info@smarUK.co.uk
USA
Smar International Corporation
6001 Stonington Street, Suite100
Houston, TX 77040
Tel.: +1 713 849-2021
Fax: +1 713 849-2022
Smar Laboratories Corporation
6001 Stonington Street, Suite 100
Houston, TX 77040
Tel.:+1 713 849-2021
Fax: +1 713 849-2022
e-mail: sales@smar.com
Smar Research Corporation
4250 Veterans Memorial Hwy. Suite 156
Holbrook , NY 11741
Tel: +1-631-737-3111
Fax: +1-631-737-3892
e-mail: sales@smarresearch.com

Introduction
III
Introduction
This manual is divided in three parts:
1. Ladder Logic: We describe control elements of a control strategy available in the LOGICVIEW and
used by the DF65.
2. Function Blocks: We present detailed descriptions of all function blocks available in the LOGICVIEW
and used by the DF65.
3. LOGICVIEW: We describe Smar’s Software LOGICVIEW. This is the application used to configure the
hardware of a control system (I/O Modules, Power Supplies, CPU, etc), implement ladder logic
(including ladder network elements and function blocks)
We suggest user to read initially chapters 1 and 2 and next going to chapter 3 that describes clearly how
to implement elements described in the first two chapters. However, user is free to start reading from
chapter 3 prior to the other ones and consult chapters 1 and 2 any time it is necessary. Chapter 3 deals
with description of the Smar’s LOGICVIEW Software that is part of the DF65 System.
This manual has practical examples that describe step-to-step how to set strategies of control. These
examples were included in order to make easier user’s understanding of the system. These applications
are distributed along this manual.

DF65 – LogicView Configuration Manual
IV
NOTE
This document is a description of all function blocks and logic elements (ladder) implemented in the coprocessor
(DF65). Besides this document presents a description of how to configure and edit ladder networks through Smar’s
LOGICVIEW. This document also describes details of this software.
Smar reserves it the right to change any part of this manual without prior notice.
Note that different versions of the DF65 have different types of data, function blocks and generic characteristics. The
last version of the DF65 is always an update of the old manual without prior notice. It means it will have all
characteristics included, old and new ones.

Summary
V
Summary
Introduction........................................................................................................................................................... III
Chapter 1 - Network Elements (Ladder Elements) and Tools..................................................1.1
The Network Elements........................................................................................................................................ 1.1
Definitions of the Elements of the Network Tool Box........................................................................................ 1.1
Normally Open Contact.................................................................................................................................................................................1.1
Normally Closed Contact..............................................................................................................................................................................1.1
Positive Transition-Sensing Contact..........................................................................................................................................................1.1
Negative Transition-Sensing Contact..........................................................................................................................................................1.1
Coil................................................................................................................................................................................................................1.2
Negated Coil.................................................................................................................................................................................................1.2
Set (Latch) Coil.............................................................................................................................................................................................1.2
Reset (Unlatch) Coil .....................................................................................................................................................................................1.2
Retentive (Memory) Coil...............................................................................................................................................................................1.2
Set Retentive (Memory) Coil........................................................................................................................................................................1.2
Reset Retentive (Memory) Coil....................................................................................................................................................................1.2
Positive Transition-Sensing Coil ..................................................................................................................................................................1.2
Negative Transition-Sensing Coil.................................................................................................................................................................1.3
Horizontal Connecting Line..........................................................................................................................................................................1.3
Vertical Connecting Line ..............................................................................................................................................................................1.3
Eliminate Vertical Connecting Line from the Focused Cell.........................................................................................................................1.3
Function Blocks ............................................................................................................................................................................................1.3
User Function ...............................................................................................................................................................................................1.3
Jump to a Network........................................................................................................................................................................................1.3
Return for the Last Jump..............................................................................................................................................................................1.3
Boolean Logic..................................................................................................................................................... 1.3
Normally Open Relay .................................................................................................................................................................................................1.3
Normally Closed Relay...............................................................................................................................................................................................1.3
Logical Function OR...................................................................................................................................................................................................1.4
Logical Function AND.................................................................................................................................................................................................1.4
Boolean Equations......................................................................................................................................................................................................1.4
Boolean Algebra .........................................................................................................................................................................................................1.5

DF65 – LogicView Configuration Manual
VI
Chapter 2 - Function Blocks .......................................................................................................2.1
Introduction......................................................................................................................................................... 2.1
EN Input and ENO Output................................................................................................................................... 2.1
Available Function blocks in alphabetic order .................................................................................................. 2.2
Function Blocks Listed by Functional Groups..................................................................................................2.3
Time and Pulse Related Functions..................................................................................................................... 2.4
Pulse Accumulator (ACC) ..........................................................................................................................................................................................2.4
Pulse Accumulator (ACC_N).....................................................................................................................................................................................2.5
Pulse Counter Down (CTD)........................................................................................................................................................................................2.7
Pulse Counter Up (CTU) ............................................................................................................................................................................................2.8
Pulse Counter Up (CTU1) ..........................................................................................................................................................................................2.9
Real Time Alarm (RTA) ............................................................................................................................................................................................2.10
Timer Off-Delay (TOF)..............................................................................................................................................................................................2.11
Timer Off-Delay (TOF1)............................................................................................................................................................................................2.12
Timer On-Delay (TON) .............................................................................................................................................................................................2.12
Timer On-Delay (TON1) ...........................................................................................................................................................................................2.14
Timer Pulse (TP).......................................................................................................................................................................................................2.15
Timer Pulse (TP1)....................................................................................................................................................................................................2.16
Data Manipulation Functions............................................................................................................................ 2.17
Byte to Bits Conversion (BTB) .................................................................................................................................................................................2.17
BCD to Integer Conversion (BTI).............................................................................................................................................................................2.18
First In First Out (FIFO)..........................................................................................................................................................................................2.19
Integer Constants (ICT)..........................................................................................................................................................................................2.22
Integer to BCD Conversion (ITB)...........................................................................................................................................................................2.23
Integer to Real Conversion (ITR)...........................................................................................................................................................................2.24
Multiplexer (MUX).....................................................................................................................................................................................................2.25
Bitwise Not (NOT).....................................................................................................................................................................................................2.26
Output Binary Selection (OSEL) ..............................................................................................................................................................................2.27
Real Constants (RCT) ............................................................................................................................................................................................2.28
Real to Integer Conversion (RTI).............................................................................................................................................................................2.29
Binary Selection (SEL) .............................................................................................................................................................................................2.30
Truncate (TRC).........................................................................................................................................................................................................2.31
Bit Wise Logic (BWL)................................................................................................................................................................................................2.32
Mathematical Functions.................................................................................................................................... 2.34
Absolute Value (ABS).............................................................................................................................................................................................2.34
Addition (ADD)..........................................................................................................................................................................................................2.35
Division (DIV)............................................................................................................................................................................................................2.36
Modulo (MOD) ..........................................................................................................................................................................................................2.37
Multiplication (MUL)................................................................................................................................................................................................2.38
Square Root (SQR) ..................................................................................................................................................................................................2.39
Subtraction (SUB)....................................................................................................................................................................................................2.40
Comparison Functions ..................................................................................................................................... 2.41
Equality (EQ).............................................................................................................................................................................................................2.41
Decreasing Monotonic Sequence (GE) ...................................................................................................................................................................2.42
Decreasing Sequence (GT)......................................................................................................................................................................................2.43
Increasing Monotonic Sequence (LE)....................................................................................................................................................................2.44
Limiter (LMT).............................................................................................................................................................................................................2.45
Increasing Sequence (LT)........................................................................................................................................................................................2.46
Maximum (MAX).....................................................................................................................................................................................................2.47
Minimum (MIN) .........................................................................................................................................................................................................2.48
Inequality (NE)........................................................................................................................................................................................................2.49
Process Control Functions............................................................................................................................... 2.50
Xlim Cross Limit and Rate-Of-Change (XLIM) ........................................................................................................................................................2.50
Totalization (TOT).....................................................................................................................................................................................................2.52
Sample Hold with Up and Down (SMPL).................................................................................................................................................................2.54
Automatic Up and Down Ramp (Aramp) .................................................................................................................................................................2.54
Linearization (LIN) ....................................................................................................................................................................................................2.56
Multivariable Equations (Math1)...............................................................................................................................................................................2.57
Equation 1 – Relative Humidity................................................................................................................................................................................2.57
Equation 2 - API........................................................................................................................................................................................................2.58
Equation 3 - Signal Processing................................................................................................................................................................................2.60
PID Controller (PID)..................................................................................................................................................................................................2.62
Control Loop with local set point and A/M station ...................................................................................................................................................2.65
System Status (Status).............................................................................................................................................................................................2.66
Control Loop with local set point, A/M station with safety value when the DF57 status is “bad”...........................................................................2.68
Control Loop with local set point, A/M station and status indication of DF57 module. ..........................................................................................2.69
Motor starting with TURN ON and TURN OFF commands and safety contacts including the status of the digital input module........................2.70
Step Control (STP) ..................................................................................................................................................................................................2.71

Summary
VII
Chapter3 - The LOGICVIEW ........................................................................................................3.1
Introduction......................................................................................................................................................... 3.1
Installation........................................................................................................................................................... 3.1
Using the LOGICVIEW......................................................................................................................................... 3.2
Launching the application...........................................................................................................................................................................................3.2
Project Information......................................................................................................................................................................................................3.2
Working Directory .......................................................................................................................................................................................................3.3
Setting up the I/O Modules.........................................................................................................................................................................................3.4
Special Modules .........................................................................................................................................................................................................3.6
Configuration and Hardware Consistency.................................................................................................................................................................3.7
Editing the I/O Modules..............................................................................................................................................................................................3.8
Special I/O Modules ............................................................................................................................................ 3.8
Configuring the DF44 Module ....................................................................................................................................................................................3.8
Configuring the DF45 Temperature Module............................................................................................................................................................3.10
Configuring the DF46 Module ..................................................................................................................................................................................3.11
Configuring the FB700 Module ................................................................................................................................................................................3.12
The Balance Sheet ...................................................................................................................................................................................................3.14
ID and the Modules ........................................................................................................................................... 3.15
A note about the copy, paste, and move tools ................................................................................................ 3.16
Copy and paste.........................................................................................................................................................................................................3.16
Move..........................................................................................................................................................................................................................3.17
Undo .................................................................................................................................................................. 3.17
Memory Allocation............................................................................................................................................ 3.18
Adding Modules................................................................................................................................................ 3.19
Adding a new Rack ........................................................................................................................................... 3.19
Remote I/O subsystem...................................................................................................................................... 3.20
Global Table ...................................................................................................................................................... 3.20
Fail/Safe Outputs......................................................................................................................................................................................................3.21
Configuring Virtual Modules (Discrete Memory Locations)............................................................................ 3.21
User Tags and Description for Virtual Points...........................................................................................................................................................3.22
Configuring the control strategy ...................................................................................................................... 3.24
Ladder Diagrams (Ladder Networks).......................................................................................................................................................................3.24
The Logic Network....................................................................................................................................................................................................3.24
The Complete Cycle of the DF65.............................................................................................................................................................................3.24
Synchronized Ladder Logic Execution and Communication...................................................................................................................................3.24
Execution Sequence of a Logic Network.................................................................................................................................................................3.25
Logic Network Editing Preferences..........................................................................................................................................................................3.25
Managing Multiple Logic Networks ..........................................................................................................................................................................3.25
Moving from one Logic Network to the other...........................................................................................................................................................3.26
Inserting Ladder Diagram Elements ........................................................................................................................................................................3.26
Inserting Function Blocks .........................................................................................................................................................................................3.29
Deleting elements with the button delete.................................................................................................................................................................3.31
Function Blocks Links...............................................................................................................................................................................................3.32
PID loop automatic/manual operation......................................................................................................................................................................3.32
PID loop set point operation.....................................................................................................................................................................................3.36
General Hints on the Network..................................................................................................................................................................................3.38
Finding Things in the Networks........................................................................................................................ 3.38
Using the I/O Find Option.........................................................................................................................................................................................3.41
The User Function Find Tab.....................................................................................................................................................................................3.43
The Function Blocks Find Tab .................................................................................................................................................................................3.43
Adding Notes to the Ladder Logic Programming Lines.................................................................................. 3.44
Configuration Memory Usage and Execution Time Estimation ...................................................................... 3.45
CPU Memory ............................................................................................................................................................................................................3.45
I/O MODULES ..........................................................................................................................................................................................................3.46
The Network (Ladder Diagram)................................................................................................................................................................................3.47
How to Estimate the Space for User-Functions.......................................................................................................................................................3.48
Function Blocks.........................................................................................................................................................................................................3.49
Connecting to the DF65.................................................................................................................................... 3.51
Cable.........................................................................................................................................................................................................................3.51
Communication Switch.............................................................................................................................................................................................3.51
Physical Layer and Time out....................................................................................................................................................................................3.52
Changing the DF65 Communication Settings .........................................................................................................................................................3.54
Changing the DF65 Communication Parameters....................................................................................................................................................3.55
Communication Optimized.......................................................................................................................................................................................3.56
Modbus Message Framing................................................................................................................................ 3.57
List of Implemented Modbus Commands ........................................................................................................ 3.57

DF65 – LogicView Configuration Manual
VIII
Ethernet Communication Settings................................................................................................................... 3.57
Time out for the LAN.................................................................................................................................................................................................3.57
ENET-700/ ENET-710 IP address ...........................................................................................................................................................................3.58
Using ENET-700.......................................................................................................................................................................................................3.59
Using ENET-710.......................................................................................................................................................................................................3.61
Serial Port Configuration ..........................................................................................................................................................................................3.62
RS-485 Port Operating Modes.................................................................................................................................................................................3.63
Changing the IP Address and Username/Password...............................................................................................................................................3.64
Adjustment of Timeout to ENET-700/ENET-710.....................................................................................................................................................3.64
Working ON-LINE.............................................................................................................................................. 3.65
Downloading the configuration.................................................................................................................................................................................3.66
On-line Monitoring ............................................................................................................................................ 3.67
DF65 in the RUN Mode............................................................................................................................................................................................3.67
Monitoring Function Blocks and Ladder Elements State........................................................................................................................................3.68
Monitor Networks......................................................................................................................................................................................................3.68
Monitoring Speed......................................................................................................................................................................................................3.68
Block I/O monitoring .................................................................................................................................................................................................3.68
Forcing elements ......................................................................................................................................................................................................3.68
Using the Monitoring Feature in the MODBUS Addresses Page ...........................................................................................................................3.69
ONLINE Mode.................................................................................................................................................... 3.70
Online Editing.................................................................................................................................................... 3.71
How it works?............................................................................................................................................................................................................3.71
The online editing buttons ........................................................................................................................................................................................3.72
Full Online Edition............................................................................................................................................. 3.72
Using the Full Online Edition....................................................................................................................................................................................3.73
Add/Change Ladder Elements.................................................................................................................................................................................3.75
Add/Remove Networks.............................................................................................................................................................................................3.76
Add/Remove Modules ..............................................................................................................................................................................................3.77
Add/Remove Virtual Modules...................................................................................................................................................................................3.78
Add/Remove RIO Interface ......................................................................................................................................................................................3.79
Add/Remove User Functions ...................................................................................................................................................................................3.79
Change Module Configuration .................................................................................................................................................................................3.80
Move Modules in the Module Page..........................................................................................................................................................................3.80
Update in the Full Online Edition..............................................................................................................................................................................3.81
System Test after the update...................................................................................................................................................................................3.83
Differential Download........................................................................................................................................ 3.84
1º Step.......................................................................................................................................................................................................................3.84
2º Step.......................................................................................................................................................................................................................3.85
3º Step:......................................................................................................................................................................................................................3.86
4º Step.......................................................................................................................................................................................................................3.86
Differences between Online Edition and Full Online Edition.......................................................................... 3.88
Full Online Edition Advantages........................................................................................................................ 3.88
Notes:........................................................................................................................................................................................................................3.88
Note for DF45 Module..............................................................................................................................................................................................3.89
Note for FB-700 Module...........................................................................................................................................................................................3.89
Note for Block View Communication........................................................................................................................................................................3.89
Communication Failures................................................................................................................................... 3.89
a) Before using the Send button ..............................................................................................................................................................................3.89
b) After using the Send button .................................................................................................................................................................................3.89
c) After using the Accept Changes button...............................................................................................................................................................3.90
Update Desistance in the Full Online Edition .................................................................................................. 3.91
Example for Full Online Edition........................................................................................................................ 3.93
Example 1 .................................................................................................................................................................................................................3.93
Example 2 .................................................................................................................................................................................................................3.97
Connecting the DF65 to an HMI...................................................................................................................... 3.100
OPC (OLE for Process Control).............................................................................................................................................................................3.100
Using Communication Drivers with MODBUS............................................................................................... 3.102
Modbus Communication.........................................................................................................................................................................................3.102
Modbus address coding .........................................................................................................................................................................................3.103
Implications in Modifying a DF65 Configuration............................................................................................ 3.104
Digital Memory Map................................................................................................................................................................................................3.104
Analog Memory Map...............................................................................................................................................................................................3.104
Special Registers ............................................................................................................................................ 3.105
ReadyScanRio........................................................................................................................................................................................................3.105
SSIOStatus .............................................................................................................................................................................................................3.105
Manual Modbus Addresses Attribution.......................................................................................................... 3.106
Automatic Modbus Address Allocation ..................................................................................................................................................................3.106
Manual Modbus Address Allocation.......................................................................................................................................................................3.106
I/O Module Modbus Address Allocation.................................................................................................................................................................3.107
Function Block Modbus Address Allocation: .........................................................................................................................................................3.108

Summary
IX
User Function Blocks...................................................................................................................................... 3.109
Introduction .............................................................................................................................................................................................................3.109
Creating an User Function .....................................................................................................................................................................................3.109
Warning messages.................................................................................................................................................................................................3.112
How to estimate memory space used by user functions.......................................................................................................................................3.113
Editing an user function..........................................................................................................................................................................................3.114
Optimizing Hardware for an Application........................................................................................................ 3.114
Chapter 4 - Troubleshooting.......................................................................................................4.1

DF65 – LogicView Configuration Manual
X

Chapter 1
1.1
NETWORK ELEMENTS (LADDER
ELEMENTS) AND TOOLS
This section will help you to understand the meaning of the network ladder elements and the
network tools.
The Network Elements
As mentioned before, LOGIC VIEW uses symbols and notations defined in the standard IEC-61131-
3.
Fig 1.1 - Network Tool Box.
Definitions of the Elements of the Network Tool Box
Normally Open Contact
The state of the left link is copied to the right link if the state of the associated Boolean variable
indicated by "LABEL" is ON. Otherwise, the state of the right link is OFF.
Normally Closed Contact
The state of the left link is copied to the right link if the state of the associated Boolean variable is
OFF. Otherwise, the state of the right link is OFF.
Positive Transition-Sensing Contact
The state of the right link is ON from one evaluation of this element to the next when a transition of
the associated variable from OFF to ON is sensed at the same time that the state of the left link is
ON. The state of the right link will be OFF at all other times.
Negative Transition-Sensing Contact
The state of the right link is ON from one evaluation of this element to the next when a transition of
the associated variable from ON to OFF is sensed at the same time the state of the left link is ON.
The state of the right link will be OFF at all other times.

Ladder Elements
1.2
Coil
The state of the left link is copied to the associated Boolean variable and to the right link.
Negated Coil
The state of the left link is copied to the right link. The inverse of the state of the left link is copied to
the associated Boolean variable, that is, if the state of the left link is OFF, then the state of the
associated variable is ON, and vice versa.
Set (Latch) Coil
The associated Boolean variable is set to the ON state when the left link is in the ON state, and
remains set until reset by a Reset Coil.
Reset (Unlatch) Coil
The associated boolean variable is reset to the OFF state when the left link is in the ON state, and
remains reset until set again by a SET coil.
Retentive (Memory) Coil
The associated Boolean variable will be retentive to the memory.
Note: that the action of this coil is identical to Coil, except that the associated Boolean variable
is automatically declared to be in retentive memory without the explicit use of the VAR RETAIN
declaration defined in the initialization of variables in IEC-61131-3 standard.
Set Retentive (Memory) Coil
The associated boolean variable is set to the ON state when the left link is in the ON state, and
remains set until reset by a Reset Coil. The associated boolean variable will be retentive to the
memory.
Note: that the action of this coil is identical to Set (Latch) Coil, except that the associated
boolean variable is automatically declared to be in retentive memory without the explicit use of the
VAR RETAIN declaration defined in the initialization of variables in IEC-61131-3 standard.
Reset Retentive (Memory) Coil
The associated boolean variable is reset to the OFF state when the left link is in the ON state, and
remains reset until set by a SET coil. The associated boolean variable will be retentive to the
memory.
Note: that the action of this coil is identical to Reset (Unlatch) Coil, except that the associated
boolean variable is automatically declared to be in retentive memory without the explicit use of the
VAR RETAIN declaration defined in the initialization of variables in IEC-61131-3 standard.
Positive Transition-Sensing Coil
The state of the associated boolean variable is ON from one evaluation of this element to the next
when a transition of the left link from OFF to ON is sensed. The state of the left link is always copied
to the right link.

Configuration Manual
1.3
Negative Transition-Sensing Coil
The state of the associated boolean variable is ON from one evaluation of this element to the next
when a transition of the left link from ON to OFF is sensed. The state of the left link is always copied
to the right link.
Horizontal Connecting Line.
Use this tool to draw a connecting line from left to right in the cell on focus.
Vertical Connecting Line
Use this tool to draw a connecting line from the right side of the focused cell to the down.
Eliminate Vertical Connecting Line from the Focused Cell
Eliminate vertical connecting line. To do this actions, it’s necessary to locate the selection box in the
element which has the vertical line.
Function Blocks
Use this tool to open a dialog box for choosing the desired Built-in-Function.
User Function
Use this tool to open a dialog box for choosing available User-Functions.
Jump to a Network
If more than one network is available, it will open a dialog box for choosing the destination
network.
Return for the Last Jump
Use this tool to return to the next executable cell preceding the last jump. If no jump has being
used, it will then be ignored.
Boolean Logic The association of relays and coils create boolean functions. Below we present a brief summary of
these functions and Boolean Algebra.
Normally Open Relay
Diagram State Table
A S
0 0
1 1
When the state of A changes from 0 to 1 the contact A is closed and the flow goes from the power
rail at left to the right powering the coil S.
Normally Closed Relay
Diagram State Table
A S
0 1
1 0

Ladder Elements
1.4
The A relay is normally closed. The power flow passes through A powering A until the value of A
changes from 0 to 1. In this way the coil S has the contrary behavior compared to the the coil of the
previous item. (normally open contact)
Logical Function OR
Diagram State Table
A B S
0 0 0
0 1 1
1 0 1
1 1 1
Relays A and B are normally open. With the association of both we implement the OR function. The
coil is powered when any of the two relays is closed.
Logical Function AND
Diagram State Table
A B S
0 0 0
0 1 0
1 0 0
1 1 1
Relays A and B are normally open. The coil S is powered when A and B are equal 1 at the same
time. Otherwise the power flow will not pass from the left side (power rail) to the right side.
Boolean Equations
Using relays and coils it is possible to implement boolean functions. For example, consider the
diagram below:
The S output depends of the state of the relays A, B, C, D and of the coil E. E depends of the values
of A,B,C and D. So:
ES
B).C.D(AE
=
+
=

Configuration Manual
1.5
Boolean Algebra
Boolean equations as shown above may become very complicated, however the result might be
simplified using the boolean algebra. Below we show a summary of properties of the Boolean
Algebra.
1 A.1= A
2 A.0= 0
3a
3b A.A= A
AA = 0
4a
4b A+ A=1
A+A=A
5 A+1=1
6 A.B+A.C=A.(B+C)
7 A+A.B= A
8 A.(B+C)= A.B+A.C
9a
9b B.ABA =+
BAA.B +=
When these expressions become too complex we suggest that you use the Karnaugh map in order
to simplify them. This information is easily found on any Digital Electronics Book.

Ladder Elements
1.6

Chapter 2
2.1
FUNCTION BLOCKS
Introduction
This is a complete and updated reference of the Function Blocks (FB) supported by the DF65 CPU.
Here we present block diagrams showing inputs, outputs, configuration parameters and internal
variables. It also includes detailed explanations of each block, how they work, how to configure each
one of them and a few examples are presented in order to help with the user’s understanding and
utilization.
Many times, an input or output will be classified as ANY, ANY_NUM, ANY_BIT, ANY_REAL or
ANY_INT. If input is ANY_NUM it means it might be connected to either a REAL or INT output. For
a better explanation, see the table below:
Reference Data Type Number of bits Version
BOOLEAN Boolean 1 1.xx or superior
INT Integer 16 2.xx or superior
REAL Float 32 2.xx or superior
WORD String 16 2.xx or superior
A
N
Y
A
N
Y
_
NUM
A
NY
_
BIT
A
N
Y
_
REA
L
ANY_INT
REA
L
INT
BOOL, BYTE
If the user tries to set two outputs of a function block having variables of different data types, for
example, adding an integer to a float, the LOGIC VIEW will not allow this setting. As the first block
variable is selected, it is expected that all other inputs havethe same data type of this variable.
During this configuration of inputs and outputs LOGIC VIEW asks the user to inform variable data
types that should be set when the manual describes it as ANY_XX.
Each function block has a table where all inputs, outputs, parameters and variables of each block
are shown.
I - Inputs: It is a variable from another FB or from an I/O card
P - Parameter: User’s configurations.
O - Outputs: Variables resulting from processing inside each block.
V - Variables: Auxiliary variables of block algorithms.
Information about the use of point "." and comma ", " in the input of parameters of function
blocks:
The format for the numeric data input (use of "." and ",") it should be in agreement withthe defined
patterns in the regional configurations of the computer.
EN Input and ENO Output
Every function has an EN input and an ENO output.
EN input is set to enable the function block that should be processed. If EN is false, all outputs
change to zero and the FB is not executed.
ENO changes to true logic to indicate the function was successfully executed without troubles.

Function Blocks
2.2
Available Function blocks in alphabetic order
FUNCTION NAME DESCRIPTION
ABS Absolute Value
ACC Pulse Accumulator
ACC_N Pulse Accumulator
ADD Addition
ARAMP Automatic Up and Down Ramp
BTB BYTE_TO_BITS Conversion
BTI BCD_TO_INT Conversion
BWL Bit wise Logic
CTD Counter Down
CTU Counter Up
CTU1 Counter Up
DIV Division
EQ Equality
FIFO First In First Out
GE Decreasing Monotonic Sequence
GT Decreasing Sequence
ICT Integer Constants
ITB INT-TO-BCD Conversion
ITR Conversion Int to Real
LE Increasing Monotonic Sequence
LIN Linearization
LMT Limiter
LT Increasing Sequence
MATH1 Multivariable Equations
MAX Maximum
MIN Minimum
MOD Modulo
MUL Multiplication
MUX Multiplexer
NE Inequality
NOT Bitwise NOT
OSEL Output Selection
PID PID Controller
RCT Real Constants
RTA Real Time Clock Alarm
RTI Conversion Real To Int
SEL Binary Selection
SMPL Sample Hold with Up and Down
SQR Square Root
STATUS System Status
STP Step Control
SUB Subtraction
TOF Timer Off-Delay
TOF1 Timer Off-Delay
TON Timer On-Delay
TON1 Timer On-Delay
TOT Totalization
TP Timer Pulse
TP1 Timer Pulse
TRC Truncation
XLIM Cross Limit and Rate-Of-Change

DF65 – LogicView Configuration Manual
2.3
Function Blocks Listed by Functional Groups
TIMER/PULSE FUNCTIONS
MNEMONIC DESCRIPTION
ACC Pulse Accumulator
ACC_N Pulse Accumulator
CTU1 Counter Up
TOF1 Timer Off-Delay
TON1 Timer On-Delay
TP1 Timer Pulse
CTD Counter Down
CTU Counter Up
TOF Timer Off-Delay
TON Timer On-Delay
TP Timer Pulse
RTA Real Time Clock Alarm
DATA MANIPULATION FUNCTIONS
MNEMONIC DESCRIPTION
BTB BYTE_TO_BITS Conversion
BTI BCD_TO_INT Conversion
BTW Bitwise Logic
FIFO First In First Out
ICT Integer Constants
ITB INT-TO-BCD Conversion
ITR Conversion Int to Real
MUX Multiplexer
NOT Bitwise NOT
OSEL Output Selection
RCT Real Constants
RTI Conversion Real to Int
SEL Binary Selection
MATH FUNCTIONS
MNEMONIC DESCRIPTION
ABS Absolute Value
ADD Addition
DIV Division
MOD Modulo
MUL Multiplication
SQR Square Root
SUB Subtraction
TRC Truncate
COMPARISON FUNCTIONS
MNEMONIC DESCRIPTION
EQ Equality
GE Decreasing Monotonic Sequence
GT Decreasing Sequence
LE Increasing Monotonic Sequence
LMT Limiter
LT Increasing Sequence
MAX Maximum
MIN Minimum
NE Inequality
PROCESS CONTROL FUNCTIONS
MNEMONIC DESCRIPTION
ARAMP Automatic Up and Down Ramp
LIN Linearization
MATH1 Multivariable Equation
PID PID Controller
SMPL Sample Hold with Up and Down
STATUS System Status
STP Step Control
TOT Totalization
XLIM Cross Limit and Rate-Of-Change

Function Blocks
2.4
Time and Pulse Related Functions
Pulse Accumulator (ACC)
Description
This Pulse Accumulator Block works with the DF41/DF42/DF67 Modules and the main objective of
the accumulating input pulses is coming from an external source. Typically one of the inputs from
the DF41 moduleis linked to the INinput in the ACC block.
During the control cycle the DF41/DF42/DF67 accumulate pulses in a local register in the circuit. At
the end of every control cycle the DF65 CPU reads the accumulated amount and automatically
clears the internal register for the next cycle (preventing an overflow). When the control logic
executes, the ACC block gets the integer number of pulses in the IN input and adds it to an internal
accumulator TOT_L and TOT_H and, as can be seen, this accumulator is shared as outputs of the
ACC block.
Two actions take place when the CLRA input is high in the ACC block:
The TOT_L and TOT_H accumulated values are moved to MEM_L and MEM_H register.
The TOT_L and TOT_H contents are then cleared.
The Q output
This function block can also give the information of “pulse speed” (flow) in a time interval (MP) that
can be configured by the user. The Q output will keep showing an updated value of accumulated
pulses on each MP time interval.
The parameters TR_ON and TR_OFF are the hysteresis limits for the Q threshold. The THR output
will go to high when Q is higher or equal to TR_ON and will go back to low when it is lower or equal
to TR_OFF.
Accumulator Mode
The ACC function block can count pulses in the TOT_L and TOT_H registers in two different ways:
Maximum counting in TOT_L is 32767 and TOT_H represents how many times TOT_L
overflowed.This means that the total accumulated pulse is calculated by the following formula:
(TOT_H * 32768) + TOT_L
Maximum counting in TOT_L is 9999 and TOT_H represents how many times TOT_L
overflowed.This means that the total accumulated pulse is calculated by the following formula:
(TOT_H * 10000) + TOT_L
The accumulation mode is set during the ACC block configuration. The mode set for TOT_L and
TOT_H will be extended to MEM_L and MEM_H.
ACC PULSE ACCUMULATOR
EN
BOOL
BOOL
THR
INT
Q
TOT_L
TOT_H
MEM_L
MEM_H
ENO
BOOL
BOOL
CLRA
INT
IN
INT
INT
INT
INT
ACC
IF EN = 1 THEN
ENO = 1
TOT= TOT+ IN
TACC = TACC + IN
IF CLRA = 1 THEN
MEM = TOT
TOT = 0
IF TIMER >= MP
Q = TACC
IF TACC >= TR_ON
THR = 1
IF TACC <= TR_OFF
THR = 0
TACC = 0
ELSE
ENO = 0
This manual suits for next models
4
Table of contents
Popular Control Unit manuals by other brands

AMP Display Inc.
AMP Display Inc. DWIN C Series LCM quick start guide

GEM
GEM 643 Series Installation, operating and maintenance instructions

KE2 Therm Solutions
KE2 Therm Solutions KE2 Low Temp Plus Defrost quick start guide

Azbil
Azbil NX-D15 user manual

Hayward
Hayward OmniPL HLBPRO4SW installation manual

Val-Matic
Val-Matic FloodSafe Inflow Preventer Operation, maintenance and installation manual