advantech multiprog deploying a sample on...
TRANSCRIPT
Jeffrey WangFAE
2006/2
Advantech MultiprogAdvantech MultiprogDeploying a project on KWDeploying a project on KW
Deploying a ProjectDeploying a Project
KW series IntroductionHardware ConfigurationMutliprog I/O configurationCompiling and Downloading
Goals of the lessonGoals of the lesson
Familiarize with KW I/O Configuration
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
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
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
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
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.
KW-series DIP SwitchKW-series DIP Switch
ID = 0 reserved by system configuration.
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
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
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
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
Mutliprog I/O configurationMutliprog I/O configuration
Double click ‘IO_Configuration’IO_Configuration Dialogbox
– Select ‘INTPUT’ tab– Click Properties or double click the
selection.
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
Mutliprog I/O configurationMutliprog I/O configuration
Select Slot 0 and select ADAM5051If select AI module, select ‘Advance…’ button to setup module type
Mutliprog I/O configurationMutliprog I/O configuration
Although the length of Logical address will be re-calculated.Data length
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.
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’
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
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.
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.
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.
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)
AppendixAppendix
Another way to setup the IP of EKW/TP
Configuring EKW/TP IPConfiguring EKW/TP IP
Installed ADAM-5510 series utilityLaunch ADAM-5510 series utilityClick ‘Launch Terminal’Connecting EWK/TP COM3
Configuring EKW/TP IP addressConfiguring EKW/TP IP address
Short the INIT* pin to GND pin and reset KW.
Configuring EKW/TP IP addressConfiguring EKW/TP IP address
Click ‘Refresh’ buttonClick ‘Network Configuration’ button
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
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
QUIZQUIZ