advantech multiprog deploying a sample on...

31
Jeffrey Wang FAE 2006/2 Advantech Multiprog Advantech Multiprog Deploying a project on KW Deploying a project on KW

Upload: others

Post on 19-Jul-2020

10 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

Jeffrey WangFAE

2006/2

Advantech MultiprogAdvantech MultiprogDeploying a project on KWDeploying a project on KW

Page 2: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

Deploying a ProjectDeploying a Project

KW series IntroductionHardware ConfigurationMutliprog I/O configurationCompiling and Downloading

Page 3: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

Goals of the lessonGoals of the lesson

Familiarize with KW I/O Configuration

Page 4: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

ADAM-5510KW SeriesADAM-5510KW Series

4-Slot 8-Slot

ADAM-5510EKW/TP8-slot Ethernet SoftLogic Controller

ADAM-5510EKW8-slot SoftLogic Controller

ADAM-5510KW4-slot SoftLogic Controller

Ethernet-enabled

w/o Ethernet

Page 5: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

KW - series SpecificationKW - series Specification

CPU: 80188-40OS: Boot ROM-DOSMemory: Program,70KB(150KB for 5510KW/5510EKW) KW Source File 512KBSRAM: 640 KBBattery backup:

– ADAM-5510KW and ADAM-5510EKW:32 KB (16 KB for Modbus, 16 KB for KW retain data)

– ADAM-5510EKW/TP:11 KB (4 KB for Modbus, 7KB for KW retain data)

5000 Series Modules

Page 6: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

ADAM5510 KWADAM5510 KW

COM1: RS-232, DB-9 connectorCOM2: RS-485, Terminal BlockCOM3 :Debug/Programming port (for system maintenance only), RS-232 interface, DB-9 connectorCOM4: RS-232/485 selectable, DB-9 connector

Page 7: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

ADAM-5510 EKW, EKW/TPADAM-5510 EKW, EKW/TP

COM1: RS-232/485 selectable, DB-9 connectorCOM2: RS-485, Terminal BlockCOM3 :Debug/Programming port (for system maintenance only), RS-232 interface, DB-9 connectorCOM4: RS-232/485 selectable, DB-9 connector

Page 8: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

KW-series DIP SwitchKW-series DIP Switch

DIP 1-5: Device ID settingDIP 6: COM1, COM2 switchDIP 7,8: Baud Rate SettingTip: All DIP Switch off, KW will be in debug mode.

Page 9: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

KW-series DIP SwitchKW-series DIP Switch

ID = 0 reserved by system configuration.

Page 10: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

Host Connecting to KW – Using COM1/RS-232Host Connecting to KW – Using COM1/RS-232

RS-232

Null Modem Cable

RS-232/COM1

Multiprog Protocol / 19200 bps

COM1/RS-232

OFF

Mode Selection / Baud Rate

COM Selection

SW6

Page 11: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

Host Connect to KW – Using COM2/RS-485Host Connect to KW – Using COM2/RS-485

Multiprog Protocol / 19200 bpsCOM2/RS-485ON

Mode Selection / Baud RateCOM SelectionSW6

Page 12: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

Mutliprog I/O configurationMutliprog I/O configuration

Open the sample project (LD)Right click ‘Rescores…’and select ‘Settings…’Select COM port( your PC)‘DLL’ for TCP/IP,

Click ‘DLL’ andInput IP Address

Page 13: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

Mutliprog I/O configurationMutliprog I/O configuration

Click ‘Data area’ button to setup Data AreaInput these values– Non retain

End user /Start systemEnd System

– RetainEnd user / Start systemEnd System

Page 14: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

Mutliprog I/O configurationMutliprog I/O configuration

Double click ‘IO_Configuration’IO_Configuration Dialogbox

– Select ‘INTPUT’ tab– Click Properties or double click the

selection.

Page 15: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

Mutliprog I/O configurationMutliprog I/O configuration

Change ‘User defined Input’ to ‘AdvantechADAM5510KW’Click ‘Driver Parameter…’Logical address– Length will be re-

calculated by the ‘Driver Parameter…’

– Or Input by yourself

Page 16: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

Mutliprog I/O configurationMutliprog I/O configuration

Select Slot 0 and select ADAM5051If select AI module, select ‘Advance…’ button to setup module type

Page 17: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

Mutliprog I/O configurationMutliprog I/O configuration

Although the length of Logical address will be re-calculated.Data length

Page 18: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

Mutliprog I/O configurationMutliprog I/O configuration

Select COM port date formatNetwork setup (EKW/TP)

– Download the project.– Reset the EKW/TP.– When Power light is on, Run and COMM lights

are off, reset the EKW/TP again.– The EKW/TP IP will be changed.

Page 19: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

Mutliprog I/O configurationMutliprog I/O configuration

Select ‘OUTPUT’ TabSelect ‘Properties…”Change the Board I/O ModuleSelect Slot 1 and select ADAM-5056Check the Logical address lengthClick ‘OK’

Page 20: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

Compiling the example- ‘Making' the projectCompiling the example- ‘Making' the project

Click on the 'Make' icon in the toolbar:Errors and warnings detected during compilationdouble clicking on an error/warning will open the worksheet

Fix all errors and re-compile the project

Page 21: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

Downloading the project to the I/O simulationDownloading the project to the I/O simulation

Click on the 'Project Control Dialog' icon to open the resource control dialogPress the 'Download' button.Select ‘Include Bootproject’ and click ‘Download’ button.

Page 22: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

Downloading the project to the I/O simulationDownloading the project to the I/O simulation

Click the ‘Cold' icon to execute a cold startClick the ‘Stop’ icon to stopClick the ‘Download’ icon to Reset.

Page 23: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

FAQ about I/O ConfigurationFAQ about I/O Configuration

Can I decide the number of address that I want, or there are fixed address ?

– You don’t decide the internal memory address. Mulitprogand KW will arrange the memory location automatically.

If for example I have 10 modules and number1 is 8 DI and number 10 is 8AI how can I address them?( first 8 modules are in the master ADAM while the last 2 are in the slave ADAM) Is correct to write: %IX 0.0(for first input of DI) and %IB10.0 (for first input of AI)?

– Not exactly true. Actually, you can assign the address what you want.

Page 24: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

FAQ about I/O ConfigurationFAQ about I/O Configuration

Which is the retain Area? From…. To……– Select the Retain function. Variable or object will be kept in

retain memory.

Size of retain memory– ADAM-5510KW and ADAM-5510EKW:

32 KB (16 KB for Modbus, 16 KB for KW retain data)– ADAM-5510EKW/TP:

11 KB (4 KB for Modbus, 7KB for KW retain data)

Page 25: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

AppendixAppendix

Another way to setup the IP of EKW/TP

Page 26: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

Configuring EKW/TP IPConfiguring EKW/TP IP

Installed ADAM-5510 series utilityLaunch ADAM-5510 series utilityClick ‘Launch Terminal’Connecting EWK/TP COM3

Page 27: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

Configuring EKW/TP IP addressConfiguring EKW/TP IP address

Short the INIT* pin to GND pin and reset KW.

Page 28: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

Configuring EKW/TP IP addressConfiguring EKW/TP IP address

Click ‘Refresh’ buttonClick ‘Network Configuration’ button

Page 29: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

Configuring EKW/TP IP addressConfiguring EKW/TP IP address

input IP addressClick ‘Obtain DNS address automatically’Click ‘Update’ button in ‘IP/DHCP’Exit this windowRemove the connection between INIT* and GNDReset KW

Page 30: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

Configuring EKW/TP IP addressConfiguring EKW/TP IP address

Open the sample_6k.zwtRight click ‘Resource’ and select ‘setting…’Click ‘DLL’Input ‘Parameter’ : KW IP address

Page 31: Advantech Multiprog Deploying a sample on KWadvdownload.advantech.com/productfile/Downloadfile1... · KW - series SpecificationKW - series Specification CPU: 80188-40 OS: Boot ROM-DOS

QUIZQUIZ