You are on page 1of 11

Hands-on

Overview of IEC
Programming
- Input/output Data Processing -

Ng Chye Wee

| Document Number | June 25, 2018 |


© Yokogawa Electric Corporation
I/O Interface
Logic Designer

Device label
variables

Device labels
Resource Configurator

Each device label variable is connected to the


device label with the same name when the
control application is executed.

| Document Number | June 25, 2018 |


© Yokogawa Electric Corporation
Page.1
Hands-on Input/output Data Processing
System Configuration

Resource
Logic Designer
Configurator

or
IP address
FCN FCJ 192.168.0.1

| Document Number | June 25, 2018 |


© Yokogawa Electric Corporation
Page.2
Hands-on Input/output Data Processing
 Exercise: Let’s create input/output data processing
FCJ

Digital Input
Digital Output

Analog Output

Analog Input
| Document Number | June 25, 2018 |
© Yokogawa Electric Corporation
Resource Configurator
Hans-on 1:Resouce Configurator
(1) Double-click the "Resource Configurator" icon on the desktop to start Resource Configurator.
(2) Select [File]-[Connection] from the menu bar.
(3) Specify “192.168.0.1” for “Host Name”.
Specify the user name and password.
User Name stardom
Password YOKOGAWA
Click [OK]
(4) Select [IOM]-[AI/AO]. Define the device label “AI001” and “AO001”
(5) Select [IOM]-[DI/DO]. Define the device label “DI001”, “DI002”, and “DO001”

(6) Select [File]-[Download] from the menu bar.


Click [OK].

| Document Number | June 25, 2018 |


© Yokogawa Electric Corporation
Device Label Variables
Hans-on 2:Logic Designer - Defining device label variables
Project File
(1) Click “DeviceLabelDefinition” on the project tree.
T1.mwt
(2) Define the following five device label variables.
(3) After completing input, click [OK], and then click [Yes] on the displayed confirmation dialog
to proceed.

Icon / I/O Category

| Document Number | June 25, 2018 |


© Yokogawa Electric Corporation
NPAS_AI_ANLG / NPAS_AO_ANLG
Hans-on 3:Logic Designer - Insert NPAS_AI_ANLG/NPAS_AO_ANLG (1) Double-click
(1) Double-click the [Main]-[Main] on the project tree to open the code worksheet.
(2) Select “<SD_NPASPOU_PF>” from the [Group] combo box of the [Edit Wizard].
(3) Drag & drop “NPAS_AI_ANLG” from [Edit Wizard] to the worksheet. Click [OK]
(4) Drag & drop “NPAS_AO_ANLG” from [Edit Wizard] to the worksheet. Click [OK]
(2) Select

(3) Drag and drop “NPAS_AI_ANLG” [OK]


(4) Drag and drop “NPAS_AO_ANLG” [OK]

(5) Double Click the circle for the “IN” of the “NPAS_AI_ANLG”.
(6) Click the [Name] combo box, and then select [AI001]. [OK]
(7) Double Click the circle for the “OUT” of the “NPAS_AO_ANLG”.
(8) Click the [Name] combo box, and then select [AO001]. [OK]

(6) Select “AI001” (7) Double-click “OUT” (6) Select “AO001”


(5) Double-click “IN”

| Document Number | June 25, 2018 |


© Yokogawa Electric Corporation
DI/DO Variable
Hans-on 4: Specifying DI/DO variable and debugging
(1) Double Click the “A001” variable.
(2) Click the [Name] combo box, and then select [DI001_BOOL]. [OK]
(3) Double Click the “B001” variable.
(4) Click the [Name] combo box, and then select [DI002_BOOL]. [OK]
(5) Double Click the “Q001” variable.
(6) Click the [Name] combo box, and then select [DO001_BOOL]. [OK]
(7) Make. Download. Cold Start. Debug.

Make
Project Control Dialog Debug on
-> Download

| Document Number | June 25, 2018 |


© Yokogawa Electric Corporation
Debug

Debug

| Document Number | June 25, 2018 |


© Yokogawa Electric Corporation
Tips: inline edit box
 Functions, function blocks and variables can be
inserted via keyboard using the inline edit box.
 Press the <Tab> key to open the inline edit box.

(1) Click the worksheet to specify the position for user defined function “AND” .
(2) Type “AND” [Enter] directly. Click [OK].
(3) Click the worksheet to specify the position for user defined function block “TON” .
(4) Type “TON” [Enter] directly, and click [OK].

| Document Number | June 25, 2018 |


© Yokogawa Electric Corporation
Thank you for your attention.

The names of corporations, organizations, products and logos herein are either registered trademarks or
trademarks of Yokogawa Electric Corporation and their respective holders.

| Document Number | June 25, 2018 |


© Yokogawa Electric Corporation

You might also like