You are on page 1of 21

Configure Function

Blocks

© Yokogawa System Center Europe Sheet 1


Objectives
Add User Created Function Blocks to a configuration
Program Blocks
Derived Function Blocks
Actions

Add Standard Function Blocks to a configuration


Recognize different Data Types.

Reference CG39-20 Rev. 4


© Yokogawa System Center Europe Sheet 3
Create Program Blocks

© Yokogawa System Center Europe Sheet 5


Function Block Types List

© Yokogawa System Center Europe Sheet 7


Function Block Declaration

© Yokogawa System Center Europe Sheet 9


Select a Block from the List

© Yokogawa System Center Europe Sheet 11


Paste a Block on the Sheet

© Yokogawa System Center Europe Sheet 13


Create Derived Function Blocks

© Yokogawa System Center Europe Sheet 15


Copy a Function Block type

© Yokogawa System Center Europe Sheet 17


Convert a DBF to a UDBF

© Yokogawa System Center Europe Sheet 19


Find a Block in the Configuration

Path

© Yokogawa System Center Europe Sheet 21


Create Actions

© Yokogawa System Center Europe Sheet 23


Actions and How They Work
Program Block

Resource Sheet

Derived Block
Sheet Action Block
Action Block Body

Body Sheet

© Yokogawa System Center Europe Sheet 25


Selecting Standard Function
Blocks

© Yokogawa System Center Europe Sheet 27


Data Types
Numbers
• REAL Numbers – Must contain a decimal
• INTEGERS – Whole numbers
– INT – 2-byte signed value
– SINT – 1-byte (single) signed value
– UINT – 2-byte unsigned value
– USINT – 1-byte (single) unsigned value
– DINT – 4-byte (double) signed value
– UDINT – 4-byte (double) unsigned value

© Yokogawa System Center Europe Sheet 29


Use of Data Types
All variables have a Data Type assigned to
them.
All nubs on function blocks have a Data Type
assigned.
The nubs must have the proper Data Type
connected to them.
If the wrong Data Type is connected to a block nub
or variable, a pop-up box will appear with the
following message: “Data type mismatch.”

© Yokogawa System Center Europe Sheet 31


A Standard Logic Block
_00001

OR

BOOL IN01 OUT BOOL

BOOL IN02

© Yokogawa System Center Europe Sheet 33


A Standard Compare Block
_00002

GT

ANY IN01 OUT BOOL

ANY IN02

© Yokogawa System Center Europe Sheet 35


The SET_VAL Block

_00003
SET_VAL

BOOL EN ERROR BOOL

STRING DEST OUT ANY

ANY DATA

© Yokogawa System Center Europe Sheet 37


The SET_VAL Destination Address A P A C S P A T H IN G
R eso urce S h eet N am e: A C M 1
|G L O B A L _ V A R |

A F

PROGRAM1 PROGRAM2

|G L O B A L _ V A R |
SETVAL_1
SET_VAL
EN ER RO R
D EST O UT
D ATA

B C

VAR1 DER_B LK_2 VAR 2 D E R _B LK_3

|G L O B A L _ V A R | |G L O B A L _ V A R |
D E
REPCYCL P ID
EN O UT VAR 4 PV O U T
VAR3 PC TO N ET SP ER RO R
T IM R E M FD BK
S O F T L IS T
AU TO
S O F T L IS T P G ( G a in )
IN IT
O F F T IM E T I ( I n t . T im e )
O N T IM E T D (D e r. T im e )

SETVAL_2 S ETV AL_3


SET_VAL SET_VAL
EN ER RO R EN ER RO R
D EST O UT DE ST O UT
D ATA D ATA

© Yokogawa System Center Europe Sheet 39


Section Review
1. On what sheet must you be in order to create
a Program block?
2. Is it possible to re-use a derived function
block?
3. Give an example of how might use a value
that is of the UDINT type.

© Yokogawa System Center Europe Sheet 41

You might also like