You are on page 1of 63

Contents

1. The beginning ………………………………………………………………………………2


1.1 Starting …………………………………………………………………………………………...2
1.2 Open a Workspace ……………………………………………………………………………….2
1.3 Create a New Project …………………………………………………………………………….3
1.4 Create a New Target ……………………………………………………………………………..3
1.5 Create a Tag Node for Tag Builder ……………………………………………………………...5
1.6 Create a Task for FBD …………………………………………………………………………...7
1.7 Create a Program for FBD / SFC………………….……………………………………………...9

2. BUILDER …………………………………………………………………………………..11
2.1 About BUILDER ……………………………………………………………….………………..11
2.2 BUILDER menu overview ……………………………………………………….……………...12
2.3 Toolbar …………………………………………………………………………….…………….13
2.4 Contracted-key …………………………………………………………………….…………….14
2.5 File menu ………………………………………………………………………….……………..15
2.6 Edit menu …………………………………………………………………………….………….17
2.7 Target menu ………………………………………………………………………………….….17
2.8 BLD menu ……………………………………………………………………………………….19
2.9 Main menu “Report” ……………………………………………………………………………..28
2.10 “Security” menu…...……………..……………………………………………………………...30
2.11 Reports from BUILDER ………………………………………………………………………..34

3. Function Block Design …………………………………………………………………..40


3.1 Before Start ……………………………………………………………………………………...40
3.2 Select to do FB library …………………………………………………………………………..40
3.3 Make a Function block ………………………………………………………………………….42
3.4 Make a Variable …………………………………………………………………………………43
3.5 Make a Constant ………………………………………………………………………………...44
3.6 Link up Function block with Variable …………………………………………………………..45
3.7 Set up Running Procedure and Parameter of Function Block …………………………………..46
3.8 Make a ST (Structured Text) code ……………………………………………………………...47
3.9 Connect with On Line ………………………………………………………………………… ..50

4. Sequential Function Chart (SFC) ……………………………………………………..52


4.1 Make a SFC Program …………………………………………………………………………...52
4.2 An explanatory note of SFC mode ……………………………………………………………. ..52
4.3 Step ……………………………………………………………………………………………...53
4.4 ST (Structured Text) code ……………………………………………………………………….58
4.5 Make a ST code ………………………………………………………………………………….59
4.6 On Line …………………………………………………………………………………………..61

1
1. The beginning

1.1 Starting

The following screen appears when the 'BUILDER-Pro. Exe ' is executed

Fig. 1.1.1 Starting

1.2 Open a Workspace

Open Workspace window come up like the following picture when right mouse button is clicked on
starting screen.

Fig. 1.2.1Open a Workspace

A list of recently executed files would be arranged by default when the 'Recent' tab was selected. You
can browse and select the appropriate file when the 'Existing' tab was selected. You can create a new
Project by selecting a 'new' tab Button.

2
1.3 Create a New project

1.3.1 The following Pop-up window will appear when new tab button is selected.
New project will be created when click ok after typing project name for name file on project window

Fig.1.3.1 Create a New project

1.4 Create a New Target

1.4.1 Menu like the following picture will be popped up when click right mouse button on project node.
By using mouse, select the created Project name and, click right mouse button and select <New
Target>menu.

Fig. 1.4.1Create a New Target

3
1.4.2If you select the <New Target> menu, Target window will be popped up like the following picture.
New target will be created when click ok after typing target name for target window.

Fig. 1.4.2Create a New Target

1.4.3 Created Target name in the Builder pro project will be shown like the following picture.

Fig. 1.4.3Create a New Target

4
1.5 Create a Tag Node for Tag Builder

1.5.1 Click right mouse button above target node, create the tag nodes of each target by selecting the <Create Tag
Node> menu.

Fig. 1.5.1Create a Tag Node for Tag Builder

The Name of Tag node is equal to the name of Target

1.5.2 Just click <OK> button to register tag nodes

Fig. 1.5.2Create a Tag Node for Tag Builder

5
1.5.3 A Tag node under the Target node will be shown as a result. This tag node is a access point to the builder file
attached to the target. Loading a Builder pro file of a Target by double click every Tag node, progress a Builder pro
work.

Fig. 1.5.3Create a Tag Node for Tag Builder

6
1.6 Create a Tasks for FBD

1.6.1 by using mouse, select the created Target name in the Builder pro window, click right mouse button and select
<Create Tasks> menu for FBD

Fig. 1.6.1 Create a Tasks for FBD


1.6.2If you selected, Task Manager window is created like the following picture. Click Add... to make new task for
FBD.

A d d ne w Ta sk D e le te T a s k
Fig. 1.6.2 Create a Tasks for FBD

7
1.6.3 When Add... is clicked, Task window is created like the following picture.

T y p e in th e T as k
n am e

Typ e in th e In te rv a l

Typ e in th e Prio r ity

Fig. 1.6.3 Create a Tasks for FBD

1.6.4 Task for FBD is created like the following picture when click ok after type in the name, interval and priority
on the task window.

T a s k w a s c re a te d .

Fig. 1.6.4 Create a Tasks for FBD

8
1.7 Create a Program for FBD/SFC

1.7.1 by using mouse, select the Target name in the Builder pro window, click right mouse button and select
<Create Program> menu.

Fig. 1.7.1Create a Program for FBD/SFC

1.7.2 If you selected, program window is created like the following picture. New program is created when
type in the program name on the program window and click ok. If you want to use the existed FDB and
SFC file, select Program File.

T y p e in t h e p ro g ra m Nam e

T y p e in t h e A n n o t a t io n

S e le c t t o T a s k

S e le c t t o F B D f ile

Fig. 1.7.2Create a Program for FBD/SFC

9
1.7.3 When Warning message is appeared like the following picture after double clicking with mouse to
program name on be created window, Click Ok. Finally, FBD (Function Block Diagram) is created. If you
select the existed FDB file, Warning message isn't appeared.

C lic k O K

Fig. 1.7.3Create a Program for FBD/SFC

Double click the


Program name

FBD window was


created

Fig. 1.7.4Create a Program for FBD/SFC

10
2. BUILDER

2.1 About BUILDER

This software, we will call BUILDER that is designed to assist the configuration process of SSAS-pro
system. BUILDER has following facilities,

• Configuring for SSAS-pro H/W


• Configuring for SSAS-pro H/W system’s tag
• Reporting about configuration data
• Downloading configuration data to SSAS-pro H/W system at runtime

Fig. 2.1.1 BUILDER

11
2.2 BUILDER Menu Overview

BUILDER menu has the following structure.

Main Menu Sub-menu Operation

File
Save project Save project data file
open project Open existing project data file
new project Create new project data file
close project Close project data file
print preview Print out reports to screen

Edit
Import Data File ▶ Import data from formatted-text-file.
Import Tag Data... Import Tag Data
Import Yard-cable Data... Import Yard-cable Data
Export Data File ▶ Export data to formatted-text-file.
Export Tag Data... Export Tag Data
Export Yard-cable Data... Export Yard-cable Data

Target
Set Download Target... Set IP address of Target-machine.
Download... Download data to Target-machine.
Change Mode to RUN/DEVELOPMENT Change operation mode (RUN ↔ DEVELOPMENT)

BLD Build General Information... Put general information about job.

Configure System... Set SSAS-21 H/W configuration.

Configure Tag... Set Tag information.


Configure CPU System Tag... Set CPU-system-tag information.
Group ▶
Configure Function Group... Set Function-group information.
Configure Block Group... Set Block-group information.
Configure Bridge Group... Set Bridge-group information.
Configure Action Group... Set Action-group information.

Scripts ▶
Application Start Script... Set application-start-script.
While Running Script... Set while- running- script.
When Data Changed Script... Set when-data-changed-script.
Import Script... Import script-data-file (*.SCP file)

Set Server Info... Set Server Name & IP address


Set PC Info...
Set Remote Server List... Set different system server (TLGS,RCMS, etc.)
Set ST-Code Path... Set Control S/W code path & filename

Auto Link... Link tag data and H/W system data.


Manage Strings... Add or delete Unit/ Sensor strings.

Report
Select Font... Select font for report.
Select Report... Select report type to print.
Select Gray Degree... Select gray degree for report.

12
Security
Log in... Login with authorized user information.
Change Password... Change user password.
Who am I... Check current user.
Logout Exit user job.

Manage User... Add or delete user.


Set Access Level... Select access level.

Help About Builder... Check the version of BUILDER.

Table 2.2.1 Menu

2.3 Toolbar

Following "Fig 2.3.1" shows the BUILDER toolbar and its meaning.

Target/Download
BLD/Configure Tag
BLD/Confgiure System
BLD/Set ST code Path
BLD/Set PC Info
BLD/Set Server Info
File/print
File/save
File/open

Fig. 2.3.1 Tool bar

13
2.4 Contracted - key

BUILDER has a preference contracted - key to access that operation quickly through keyboard stoke.

Accelerator-key Menu
Ctrl + N File/ New
Ctrl + O File/ Open...
Ctrl + S File/ Save
Ctrl + P File/ Print
Ctrl + Y Build/ Configure System...
Ctrl + T Build/ Configure Tag...

Table 2.4.1 Accelerator-key

2.5 File menu

2.5.1 This chapter explains the operations within “File” menu

Fig. 2.5.1 File menu

14
2.5.2 The following picture is preview function a printing page.

Fig. 2.5.2 “File/ Print preview” menu

15
2.6 Edit menu

2.6.1 "Edit / Import/ Import Tag Data", "Edit/ Import/ Import Yard-cable Data"
This function is to be used in programming stage by maker.

2.7 Target menu

2.7.1 “Target/ Set Download Target” menu


● Set a IP address and port number for target system (SSAS-pro H/W).
● How to set target;
① If you select the menu, following dialog box will appear.

Fig. 2.7.1 “Set Target” Dialog Box


② Type in "name" , "IP address" after click "Add".
The Default I/P address in SSAS -pro are referred to below.

Fig.2.7.2 Default Target Name & Address

2.7.2 “Target / Download” menu


This allows Main CPUs in cabinet and Workstations to update the programmed data in builder for
system access and control. In order to download in Builder pro, the Target is predefined.
There are two different mode for downloading

2.7.2.1 Download in Development mode

16
Normally, This is will finish during Commissioning days by Maker for system
initializing. However, sometimes this procedure must be made for system initializing when CPU is out of
order and requested to be replaced by new CPU
The following procedures show how to download to new CPU
ⓐ Turn off Main S/W on System Cabinet and pull out the fault CPU
ⓑ Change the Dip s/w of new CPU to Download mode
No.1 of Dip s/w on the CPU must be "ON" position
ⓒ Insert CPU to VME slot and turn on System Power
ⓓ Active Builder program and open file(*.BLD)
Please must open your recent project data file
ⓔ Change Mode to Development mode in File menu
ⓕ Select File/Download in File menu or Click on the Menu bar
ⓖ On Register Target, Select CPU1 or CPU2 which is renewed.
ⓗ Click "O.K" on the Register Target Dialog box
ⓘ Following message will appear when download is done successfully.
CPU1 or CPU2 O.K
ⓙ Turn off Main s/w on Cabinet again and pull out CPU, return back the
Dip s/w arrangement.
ⓚ Insert CPU in VME slot and Turn on Main S/W
WARNING : when any changes will affect on system operating, it Protected by
Security. Prevent the Access from an authorized person.

2.7.2.2 Download in Run mode


This procedure is active while in system running only. Without any delay, an operator can
change all Tag information such as alarm range, limit and channel, etc.
Detail items doing in this mode is showing below.
Followings are showing how to download in Run mode.
ⓐ Activate Builder/CONFIG. Tag... or Click on the Menu bar
ⓑ Select Corresponding Tag which want to change and Modify it.
ⓒ Press Update and then O.K
ⓓ Select Target will activate automatically

Fig. 2.7.3 Select Target

ⓔ Click O.K if you want to change.

17
ⓕ The Report will show whether download is successful or not automatically upon
completion the procedure.
CPU1 is always showing O.K but Cpu2 is always showing error when download is
successful in running mode. Since, CPU1 is out of order, all the updated data in CPU1 are handed over to
CPU2 (CPU backup)
ⓖ If showing the message as above, Repeat again above procedure.

Fig. 2.7.4 Tag configuration


Followings function, operator can modify in System running with Download
● Channel modification
● Text modification
● Alarm range & limit modification
● Value calibration / Adjustment
● Unit modification
● Tag type modification
● Adding / Removing I/O point.

However, Group alarms showing bellows are not included download in running mode but
included Download in Development mode.
● Action Group for M/E Slow Down
● Bridge Group for Extension Alarm System
● Block Group
● Adding / Removing I/O card

WARNING : when any changes will affect on system operating, it Protected by


Security. Prevent the Access from unauthorized person.

18
2.8 BLD menu

This chapter explains the operations within "BLD" menu.

Fig. 2.8.1 "BLD" menu

"Build" has following sub menus;


● Build Group ~ Build Function/ Block/ Bridge/ Action group settings for system.
● Build Script ~ Build script setting for system.

2.8.1 “BLD / Build General Information” menu

Includes General description for Project. Only can access in Development Mode.

19
2.8.2 “BLD / Configure System” menu

Includes Following data. Only can access in Development Mode.


▶ VME Address for I/O cards
▶ Type of I/O card

WARNING : When any changes will affect on system operating, it Protected by


Security. Prevent the Access from an authorized person.

Fig. 2.8.2 Configure System

2.8.3 “BLD / Configure Yard Cable” menu

Showing yard cable information for all tag points. Only Accessible in Development Mode.

Fig. 2.8.3 Yard cable

20
● T.B NO : Terminal Number connected to I/O card.
● Core No./ Feed No./Type: Yard cable information
● Auto Spare.../ Auto. TB: Protected by security. Don't Touch

2.8.4 “BLD / Configure Tag” menu

This menu configures the following data. (It will be detailed in “Note 3. "About
Configure Tag" Dialog Box Operations...”)
▶ Tag's Name
▶ Tag's Description
▶ Tag's Function Code
▶ Tag's Value Range Info. (Input Min/Max, Real Min/Max)
▶ Tag's Value Unit
▶ Tag's Alarm Info.
▶ Tag's H/W Info. (Address, Channel)
▶ Tag's Sensor Info.
▶ Tag's Test Info. (Test Method, Test Result, Test Remarks)
▶ Tag's Dead bands (Value Dead band, Tag Dead band, Log Dead band)
▶ Tag's Group Info. (Function Group, Action Group, Block Group, Bridge Group)

● How to configure tag information;


① If you select the menu, following dialog box will appear.

21
Select field category to
edit

Brows e tag by group.


▶ Function G roup
▶ A ction G roup
▶ Block G roup
▶ Bridge G roup

Edit G roup
▶ Function G roup
▶ A ction G roup
▶ Block G roup
▶ Bridge G roup

Fig. 2.8.4 "Configure Tag" Dialog Box

② Click "Add"/ "Update"/ "Delete" button to add/ update/ delete a data.


③ When finished, click "OK" button.
WARNING : When any changes will affect on system operating, it Protected by
Security. Prevent the Access from an authorized person.

Note 3. About "Configure Tag" Dialog Box Operations...


▶ The data field alignments in "Configure Tag" dialog box has consistence with "Alarm Point
List" report (which is able to be generated by BUILDER).
▶ Following table shows the meaning of icons.

Icon Meaning

Group category

Group item

(blue) Analog Tag

(red) Digital Tag

Table 2.8.1 Icons in "Configure Tag" Dialog Box

22
▶ Following table shows the meaning of data fields.

Data Field Type Meaning Info

Manual Block Boolean Does tag need Manual Block?

Import Alarm Boolean Does tag need Alarm Process?


- If Alarm Process is performed by Data Source,
check this field.
- If Alarm Process is performed by Gitos, don't
check this field.

Need Log Boolean Dose tag need logging?

Name string Tag Name Not allowing <tab> character.

Description string Comments about a tag

Func string Function code for a tag Used for generating Alarm Message.

Real Min float Minimum Tag Value

Real Max float Maximum Tag Value

Input Min float Minimum Sensor Input Value Minimum value from sensor.

Input Max float Maximum Sensor Input Value Maximum value from sensor.

Hi Boolean Does tag need Hi Alarm? Automatically checked when user input Hi-limit.

float Hi Alarm Limit

Lo Boolean Does tag need Lo Alarm? Automatically checked when user input
Lo-limit.

float Lo Alarm Limit

HiHi Boolean Does tag need HiHi Alarm? Automatically checked when user input
HiHi-limit.

Float HiHi Alarm Limit

LoLo Boolean Does tag need LoLo Alarm? Automatically checked when user input LoLo-limit.

Float LoLo Alarm Limit

Digital Boolean Does tag need Digital Alarm?

radio group Digital Alarm Value

Unit string Tag Value Unit New string is automatically registered to BUILDER.

T.D. float Alarm Time Delay Value in [sec] unit.

Ref. Page string Reference Page

Priority integer Alarm Priority

Card Type string I/O Card Type - Combo box is filled with previously configured
data in
"Configure System" menu.
- It is possible to enter new string directly.

radio group Card Signal Type This field must be selected as analog or digital, if
new card-type-string is directly entered.

23
Address string I/O Address (HEX) Combo box is filled with previously configured data
in "Configure System" menu.

Channel string I/O Channel Combo box is filled with previously configured data
in "Register Card" menu.

Sensor Maker string Sensor Maker - Combo box is filled with previously
configured data in
"Configure Sensor Information" menu.
- It is possible to enter new string directly.

Sensor Type string Sensor Type

- Combo box is filled with previously configured


data in
"Configure Sensor Information" menu.
- It is possible to enter new string directly.
Sensor Signal string Sensor Signal New string is automatically registered to BUILDER.

Sensor Supplier String Sensor Supplier

- Combo box is filled with previously configured


data in
"Configure Sensor Information" menu.
- It is possible to enter new string directly.
Sensor Remarks string Sensor Remarks

Test Method string Test Method

Test Result string Test Result

Test Remarks string Test Remarks

Value Dead band float Value Dead band

Tag Dead band float Tag Dead band

Log Dea band float Log Dead band

Table 2.8.2 Data Fields in "Configure Tag" Dialog Box

24
2.8.5 “BLD / Set Server Info” menu

Input CPU information that doing download at Builder.

Fig. 2.8.5 “BLD / Set Server Info” menu

2.8.6 “BLD / set PC Info” menu

Input PC information that use a Builder program.

Fig. 2.8.6 “BLD / set PC Info” menu

25
2.8.7 “BLD / Set Remote Server List” menu

Input CPU information that use a Remote tag.

Fig. 2.8.7 “BLD / Set Remote Server List” menu

2.8.8 “BLD / Set ST-Code Path” menu

Set up a route of ST code.

Fig, 2.8.8 “BLD / Set ST-Code Path” menu

2.8.9 “BLD / Auto Link” menu

The following picture is a menu that mapping automatically at cable information in setting up a IO tag.

Fig.2.8.9 “BLD / Auto Link” menu

26
2.8.10 “BLD / Manage Strings” menu

Set up a string of Unit, Sensor Supplier, Sensor Maker, Sensor type and sensor signal that use at system.

Fig. 2.8.10 “BLD / Manage Strings” menu

Fig. 2.8.11 Unit window Fig. 2.8.12 Sensor Supplier window

Fig. 2.8.13 Sensor Maker window Fig. 2.8.14 Sensor Type window

Fig. 2.8.1 Sensor Signal window

27
2.9 Main menu "Report"

The tag information in Builder are reported by log printer by manual.

Fig. 2.9.1 "Report" menu

2.9.1 “Report/ Select Font” menu

● This menu selects font for printing reports.


● How to select font;
① Dialog box will appear like the following picture when you the select menu.

Fig.2.9.2 "Font" Dialog Box

②When you finished to select font, click "OK" button.

28
2.9.2 “Report/ Select Report” menu

● This menu selects the type of reports to be generated.


● How to select report;
①If you select the menu, following dialog box will appear.

Fig. 2.9.3 "Select Report" Dialog Box

② Select proper reports and click "OK" button.

2.9.3 “Report/ Select Gray Degree” menu


● This menu adjusts gray degree which is used for line separation in report.
● How to select gray degree;
① If you select the menu, following dialog box will appear.

Fig.2.9.4 "Select Gray Degree" Dialog Box

② Set proper gray degree and click "OK" button.

29
2.10 "Security" menu

This chapter explains the operations within "Security" menu.

Fig.2.10.1. "Security" menu

2.10.1 “Security/ Login” menu

● This menu let user login to BUILDER.


● How to login;
① If you select the menu, following dialog box will appear.

Fig.2.10.2. "Login" Dialog Box

② Type in user information and click "OK".

30
2.10.2 “Security/ Change Password” menu

● This menu changed the password of current user.


● How to change password;
① If you select the menu, following dialog box will appear.

Fig.2.10.3. "Change Password" Dialog Box

② Type in old and new password.


③ Click "OK".

2.10.3 “Security/ Who am I” menu

● This menu checked who is the current user.


● How to check current user;
① If you select the menu, following dialog box will appear.

Fig.2.10.4. "Change Password" Dialog Box

② Checked current user and click "OK".

31
2.10.4 “Security/ Logout” menu

● This let current user logout from BUILDER.

2.10.5 “Security/ Manage User” menu

● Add or delete authorized user entry.


● How to manage user;
① If you select the menu, following dialog box will appear.

Fig.2.10.5. "Manage User" Dialog Box

② Click "Add" button to add user entry.


③ Select existing user and click "Delete" to delete user entry.

32
2.10.6 “Security/ Set Access Level” menu

● This menu sets access levels for BUILDER operation.


● How to set access level;
① If you select the menu, following dialog box will appear.

Fig.2.10.6. "Set Access Level" Dialog Box

The level is only changeable by whom has highest level so as to protect Access
by an authorized person.

② Type in access levels and click "OK".

33
2.11 Reports from BUILDER

2.11.1 How to configure reporting environments

● Font ~ Use "Report/ Select Font..." menu to select font.


● Report Type ~ Use "Report/ Select Report..." menu to select report type.
● Gray Degree for Line Separation ~ Use "Report/ Select Gray Degree..." menu to set gray degree of line
separation.

G r a y L in e S epe r a tion

NO . C H .N O . T E X T F U N C . ...
1 t1301 C O M P O S IT E B O IL E R A BNR XA
2 t1302 C O M P O S IT E B O IL E R T R IP XA
3 t1303 C O M P . B O IL E R EXH. GA S TEMP T IA H
4 t1304 C O M P . B O IL E R DRU M L E V E L L IA H
L IA L
5 t1305 C O M P . B O IL E R ST E A M P R E SS P IA H
P IA L

Fig.2.11.1. Gray Line Effect

2.11.2 General Description List

● Layout

Fig.2.11.2. General Description Report

● Report Data
▶ Project Number

34
▶ Hull Number
▶ Revision Number
▶ Ship Owner
▶ Work Originator
▶ Project Start Date
▶ Ship Building
▶ Ship Yard, Division
▶ General Description

2.11.3 Group List

● Layout

Fig.2.11.3. Group List


● Report Data
▶ Action Group : Name, Action Tag, Text (Description), I/O point
▶ Block Group : Name, Block Tag, Text (Description), I/O point
▶ Bridge Group : Name, Bridge Tag, Text (Description), I/O point

35
2.11.4 Group And Tag List

● Layout

Fig.2.11.4. Group And Tag List

● Report Data
▶ Action Group and its tag list
▶ Block Group and its tag list
▶ Bridge Group and its tag list

2.11.5 Alarm Point List

● Layout

Fig.2.11.5. Alarm Point List

● Report Data
Tag information grouped by Function Group

36
▶ Name
▶ Text (Description)
▶ Function
▶ Range
▶ Alarm Limit
▶ Unit
▶ Alarm Group (Bridge Group)
▶ Action Group
▶ Block Group
▶ Time Delay
▶ Terminal Number (I/O point)

2.11.6 Sensor List

● Layout

Fig.2.11.6. Sensor List

● Report Data
Sensor information of tag grouped by Function Group

▶ Name
▶ Sensor Maker
▶ Sensor Type
▶ Sensor Supplier
▶ Sensor Remarks

37
2.11.7 On-board Test List

● Layout

Fig.2.11.7. On-board Test List

● Report Data
On-board test information of tag grouped by Function Group

▶ Name
▶ Text (Description)
▶ Function, Range
▶ Alarm Limit
▶ Time Delay
▶ Test Method
▶ Test Result
▶ Test Remarks

38
2.11.8 Connection Diagram

● Layout

Fig.2.11.8. Connection Diagram

● Report Data
Tag information grouped by I/O points

▶ Terminal No.
▶ Tag, Tag Text (Description)
▶ Signal Type
▶ Reference Page

39
3. Function Block Design

3.1 Before Start

I will explain how to design the function block after doing the preliminary work. The following picture shows
each icon's role.
S a v e F B D file

O p e n F B D file S a v e S L D file p rin t

S e le c tio n
c o n s ta n t lin e fu n c tio n b lo c k
v a ria b le
Fig. 3.1.1 Each icon’s role

3.2 Select to do FB library

3.2.1 Select Load FB library... in the pull down menu of File on the window. If warning message appears, click
Ok.

S e le c t to L o a d F b lib ra r y

C lic k O K

Fig. 3.2.1 Select to FB library

40
3.2.2 Select Function block library file(*.lib).

S ele c t to FB librar y file

Fig. 3.2.2 Select to FB library file

41
3.3 Make a Function block

3.3.1 Choose function block which you will use like the following picture.

Selec t to Func tion bloc k

Fig. 3.3.1 Select to Function block

3.3.2 The selected function block is moved by the mouse cursor. When you locate the selected function block
wherever you want to, double click left mouse button and it will be fixed on the FBD window.

PID function block was


created.

Fig. 3.3.2 Make a function block

42
3.4 Make a Variable

3.4.1 Select variable icon in the menu. (shortcut key : v; type 'v' over the FBD window.)

Select to Variable icon


Fig. 3.4.1 Select to Variable icon

3.4.2 After doing that, when you select the FBD window, Variable window is created like the following picture.

Select to Variable

Fig. 3.4.2 Select to Variable

3.4.3 Select Variable which you will link on the Variable window. Click Ok. Then variable is created like the
following picture.

V a ria b le was c re a te d
Fig. 3.4.3 Make a Variable

43
3.5 Make a Constant

3.5.1 Select Constant icon in the menu.

S e le c t to C o n s ta n t ic o n
Fig. 3.5.1 Select to Constant icon

3.5.2 After doing that, when you select the FBD window, Constant window is created like the following picture.

Select to Type

Type in Value

Fig. 3.5.2 Created a Constant window

3.5.3 On the Constant window, select Type and type in Value.

C o n s ta n t w a s c re a te d .

Fig. 3.5.3 Make a Constant

44
3.6 Link up Function block with Variable

3.6.1 Select Line icon in the menu.

S e le c t to L in e ic o n
Fig. 3.6.1 Select to Line icon

3.6.2 After doing that, link Function block to Variable on the FBD window.

L in k F u n c t io n b lo c k t o V a r ia b le
Fig. 3.6.2 Link Function block to Variable

45
3.7 Set up Running procedure and Parameter of Function Block

3.7.1 When Function block is double-clicked on the FBD window, FB window is created.

Double Click it

Fig. 3.7.1 FB window

3.7.2 Usage Name, Input Count, Execution Order, Parameter value can be changed on the FB window. In case
of Execution Order, the lower number's procedure is faster.

C h e c k b o x o p t io n f o r s h o w in g
P a ra m e te r

Fig. 3.7.2 Set up Running procedure and Parameter of Function Block

46
3.8 Make a ST(Structured Text) code

3.8.1 Create ST code

Select Generate ST in the pull down menu of FBD on the window. Then ST code is generated.

Select to Genera te ST

If you want to see the generat ed ST code, select to m ouse


cursor and m ove it up.
Fig. 3.8.1 Select to Generate ST

Select to it for
m agnification

Fig. 3.8.2 Select to it for Magnification

47
ST code is created
succefully
Fig. 3.8.3 Make a ST code

3.8.2 Make a Down File


Select Build in the pull down menu of Target on the window. If the Target is not activated in the menu, select it in
the menu after select to Target.

S e le c t to Bu ild

Fig.3.8.4 Select to Build

48
This part is added.

Fig. 3.8.5 Make a down file

49
3.9 Connect with On Line

3.9.1 Select On Line in the pull down menu of FBD on the window.

S e le c t to O n L in e

Fig. 3.9.1 Select to On Line

3.9.2 If you selected IP address window is generated. In that case input the Target IP address.

T y p e in IP a d d r e s s

Fig. 3.9.2 Type in IP address

50
3.8.3 In that case input value and output value can be seen.

Input value and


output value can be
seen

Fig. 3.8.3 Connect with On Line

51
4. Sequential Function Chart(SFC)

4.1 Make a SFC Program

Select SFC on the Type window. If you want to use the existed SFC file, select to do Program File and find what
you want.

S e le c t t o S F C

T y p e in S F C p ro g ra m Nam e

T y p e in A n n o a t io n
S e le c t t o T a s k
S e le c t t o S F C f ile

Fig. 4.1.1 Make a SFC Program

4.2 An explanatory note of SFC mode

Selection mode View D ownload File


Add a Initial Step C ompile SFC Add/Imp ort Pages
Line connection C urrent Page
Add a Step Jump Point Lock/Un lock a Step

C ommen t M ode About


Online M onitoring
Zoom in/Zoom out N ext Page
Add a Transition Previous Page
Simultanou s Line Remove Pages

Fig. 4.2.2 An explanatory note of SFC mode

52
4.3 Step

4.3.1 Create a Step

When Step is made, Initial Step is generated as a green block. General Step is generated as a yellow block.
Initial Step

Step nam e is generat ed at rando m

Step

Fig. 4.3.1 Create a Step

4.3.2 Select with Step

Both Step and Step are linked via Transition.

T ra n s itio n

In tia l v a lu e is F A L S E

Use Line connec tion

Fig. 4.3.2 Select with Step

53
4.3.3 Use Step

Double-click Step, then Name Edit window is shown like the following picture. Step name can be modified
and Action can be added on the Name Edit window.

Type in Step Name.

The Generated Select to Add an Action.


Action is shown.
Select to Delete Action

Fig. 4.3.3 Name Edit window

Action Add window is created like the following picture when click Add an action on the Name Edit window.

A u to m a tic N a m e s e t w h e n A c tio n
In p u t A c tio n N a m e n a m e is ty p e d .

Ed ito r m o d e o p tio n
S e le c t to
A c tio n F ile N a m e S e le c t to File
c hec k box
Lang uag e
Fig.4.3.4 Action Add window

54
4.3.4 Add Action

Select Action Name, Language and File Name on the Action Add window. If Action needs to be modified, select
to do Editor Launch.

Ac tion Nam e

Selec t to Laguage Type in File nam e if the file isn't. Selec t to Edito r Launc h
Fig. 4.3.5 Action Add window

You can find that Demo action is added like the following picture. If Editor Launch is selected, be
created the Edit window when click ok on the name Edit window. In case of the generated action, be
created Editor when click ok on the Action Add window

A c t io n was added .

Fig. 4.3.6 Action was added

ST-C ode progra m windo w.

Fig. 4.3.7 ST-Code program window

55
Finally, the Action is added to the Step.

Action was added .

Fig 4.3.8 Action is added to the Step

4.3.5 Use Transition

Type in the c ondition for Transition

Fig. 4.3.9 Use Transition

56
4.3.6 Connect Line
Step-Transition connection and Transition-Step connection is possible. But, Step-Step connection and
Transition-Transition connection is not allowed. Connection direction is expressed with arrow mark.

Connect with Line

Fig. 4.3.10 Connect Line

57
4.4 ST(Structured Text) code
No. Operation Symbol Precedence
1 Comment (* *) HIGHEST
2
Negation -
Complement NOT
3 Multiply *
4 Divide /
5 Modulo MOD
6 Add +
7 Subtract -
8 Comparison <,>,<=,>=
9
Equality =
Inequality <>
10 Boolean AND &, AND

11 Boolean Exclusive OR XOR


12 Boolean OR OR LOWEST
Table 4.4.1 ST code-Operation

No. Statement type/Reference Examples


1 Assignment
A := B;
CV := CV+1;
2 IF
D:=B*B-4*A*C
IF D<0.0 THEN
NROOTS:=0;
ELSEIF D:=0.0 THEN
NROOTS:=2;
X1:=B/(2.0*A);
ELSE
NROOTS:=2;
END_IF;
Table 4.4.2 St code-Statement type

58
4.5 Make a ST code

4.5.1 Do Compile

Select Compile in the pull down menu of SFC on the window or click Compile icon.

S e le c t t o c o m p ile

Fig. 4.5.1 Select to compile

4.5.2 Check Compile Result

Select View Result in the pull down menu of SFC on the window or click View Download File icon.

S e le c t to s e e S T c o d e

Fig. 4.5.2 Select to see ST code

59
ST code was created like the following picture.

Fig. 4.5.3 Make a ST code

4.5.3 Make a Down File

Select Build in the pull down menu of Target on the window. If Target is not activated in the menu, first select to
do target on the window and select to do Target in the menu.

S e l e c t t o B u i ld
Fig. 4.5.4 Make a Down File

60
4.6 On Line

4.6.1 Connect with On Line


Select On Line... in the pull down menu of SFC on the window or click On Line Monitoring icon.

S e le c t to c o n n e c t O n - Lin e

Fig. 4.6.1 Select to connect On-Line

If you selected a window is opened like the following picture. Type in the IP address.

Fig. 4.6.2 host IP Address

61
On-line flow status is shown like the following picture.

T h e b lo c k is re d w h ile it is ru n n in g .

Fig. 4.6.3 On-Line flow status

4.6.2. See tag value

Double-click Watch window like the following picture.

Double-click this
window.

Fig.4.6.4 See tag value

62
After double-clicking, select a tag which you want to know. Then the tag value is shown when it is ON-line.

S e le c t to a ta g w h ic h
y o u w ill u s e

Fig. 4.6.5 On-Line

63

You might also like