Sunteți pe pagina 1din 6

September 3, 1998

KEPserver DDE Software Manual for Idecs FA-2J PLC


1. SHORTCUTS
A. CONNECTION STEPS
1. Start KEPserver
a. Open Idec Dial Modem File
b. Click on Green Icon to Start or Mode/On-Line

2. Open Dialer Spreadsheet in Excel 97


a. Select desired location phone number and execute macro CTRL SHIFT that
matches the alpha character
b. Activate Dialer with macro, CTRL SHIFT D
c. Minimize Dialer Spreadsheet in Windows after connection is established

3. Open matching Program Name Spreadsheet in Excel 97


a. Monitor PLC program and make any necessary changes using macros:
CTRL SHIFT C Reset Alarm Counters in Program Name Spreadsheet
CTRL SHIFT E Reset Elapsed Hour Meters in Program Name Spreadsheet
CTRL SHIFT F Control Output Forcing in Program Name Spreadsheet
CTRL SHIFT W Change Temperature/Humidity Setpoints in Program Name
Spreadsheet
b. Close Program Name Spreadsheet using File/Close DO NOT EXIT FROM
EXCEL

4. Open Temperature and Humidity Data Log Spreadsheet


a. When Program Name Spreadsheet is closed use File/Open to open the
TemperatureandHumidityDataLog spreadsheet file
b. After reviewing Data Log close file using File/Close DO NOT EXIT FROM
EXCEL

5. To exit program
a. Maximize Dialer Spreadsheet
b. Hangup Modem using macro, CTRL SHIFT H

B. MACROS
CTRL SHIFT C Reset Alarm Counters in Program Name Spreadsheet
CTRL SHIFT D Dial Modem in Dialer Spreadsheet
CTRL SHIFT E Reset Elapsed Hour Meters in Program Name Spreadsheet
CTRL SHIFT F Control Output Forcing in Program Name Spreadsheet
CTRL SHIFT H Dial Modem in Dialer Spreadsheet
CTRL SHIFT W Change Temperature/Humidity Setpoints in Program Name
Spreadsheet
Page 2

2. SOFTWARE INSTALLATION

The KEPserver DDE software needs to be installed on a Windows 95, Windows 98, or Windows NT
personal computer. The PC should have a minimum of 32MB of RAM memory, an available Serial
Port, and Microsoft Excel 97 installed. The KEPserver DDE software will be licensed for use on a
single PC. Only one PC can utilize the software for each version that is purchased.

The KEPserver DDE software is installed by placing Disk #1 in Drive A. Go to Start/Run and select
Setup.exe in Drive A. This program will be installed in the C:\Program Files\KEPware subdirectory.
You will be prompted to remove the first diskette and insert the next diskette to continue the
installation procedure. When prompted place a check in the Modem Option box.

The KEPserver Modem Option is installed next. Follow the same procedure in the previous step
using Setup.exe on the Modem Option diskette to continue the installation.

The Idec Driver diskette is installed next. Follow the same procedure in the previous step using
Setup.exe on the Idec Driver diskette to continue the installation.

The KEPserver DDE configuration files are installed next. Using Windows Explorer copy the files
on the KEPserver DDE Configuration diskette to the following subdirectory, C:\Program
Files\Kepware\Kepdde\Projects.

The Microsoft Excel 97 files on the KEPserver DDE Spreadsheet diskette can be installed in a
subdirectory of your choosing. We will use C:\My Documents\Kep as the default subdirectory as
referenced in this manual. Use Windows Explorer to copy these files to the appropriate subdirectory.

Start the KEPserver DDE software by double clicking on the KEPserver icon that was placed on the
desktop. A series of 2 numbers will appear. To register the software these numbers need to be given
to the technical support department at KEPware. These numbers match the KEPware software to the
computers BIOS and Hard Disk Drive. A software registration number will be assigned by
KEPware to register their software for the PC it is installed on. KEPware uses this method of
registering their software, which is more favorable than a hardware key or dongle connected to the
computers parallel port, which is the method used by many other industrial software firms.

3. HARDWARE CONFIGURATION

Host PC Modem
An external modem needs to be connected to the computers serial port, COM 1. The modem is
configured by Hyland Automation Controls, Inc. for use with the KEPserver DDE software and the
remote Idec FA-2J Programmable Controller. The Part Number for this modem is PFA-96-HOST-A.
An internal modem may be used if the user accepts all responsibilities for configuring the modems
initialization string. Many modems that claim compatibility with each other have minute differences
that can be difficult and time consuming to determine. The host modem, PFA-96-HOST-A is
programmed with the following initialization string:
AT &F E0 N1 Q0 V1 &C0 &D0 &K0 &Q6 \N0 &W0 &W1
The spaces between the modem commands are not necessary.
Page 3

Host Modem Connections


The PFA-96-HOST-A modem connects to COM 1 or COM2 using the cable 25M-9F-10. After the
PC has fully booted turn on the Power button on the front of the modem by pressing the switch on the
right side and some of the modems LEDs will illuminate. The PC has to be configured to
communicate with this modem. Go to Start/Settings/Control Panel/Modems in Windows to install
the internal modem driver. Dont let the PC find this modem. Select Standard Modem or
Standard 14400 Modem from the list. Do not select Zoom modems from the drop down list. Set
the communication parameters to COM 1, 9600 Baud, 8 Data Bits, 1 Stop Bit and Parity to None.
Select 9600 baud as the maximum speed and be sure Flow Control and Use FIFO buffers are not
checked.

Idec PLC Modem


The remote modems connected to the Idec PLC needs to be programmed with the following
initialization string:
AT &F E0 N1 Q1 V1 &C0 &D0 &K0 &Q6 \N0 S0=1 &W0 &W1
The spaces between the modem commands are not necessary. This is the initialization string to be
used on the remote modem, PFA-96-AA-FLD-A, which is manufactured by Zoom Telephonics and is
their Model 360 VFXV.32BIS modem.

Modem Programming
The initialization string for both modems is included on the diskettes provided. These can be copied
to the appropriate subdirectory such as C:\Modem on the PC. These are written as batch files
that run under MS-DOS and utilize COM 1 to program the modem. It may be easier to create a
shortcut and place these batch files on the desktop to program the modems.

The Zoom modems can also be programmed using HyperTerminal which is included as part of
Windows. Go to Start/Programs/Accessories/HyperTerminal/hyperterminal.exe. This needs to be
setup for Direct Connect to COM 1, 9600 Baud, 8 Data Bits, 1 Stop Bit, and No Parity. The AT
modem configuration commands can be typed directly in HyperTerminal. Be sure that the AT
command starts each line of modem commands. Each initialization string cannot exceed 40
characters. To upload the present modem configuration type: AT&V
This will display the Active Profile and the two Stored Profiles, 0 and 1. All three of these
configurations should match.

Remote Modem Connections


The remote modem is normally connected to the Idec FA-2J PLC using a straight through 25 pin
male to male cable, 25M-25M-CLA-MOD. The modems require the AC adapter to be plugged into a
115 Volt A.C. outlet which provides 9 Volts D.C. to the modem.

The remote modem is setup to automatically answer an incoming call on the first ring. A dedicated
phone line is required to enable phone calls to be received by the modem. Two RJ-11 Phone Jacks
are provided on the modems to allow an extension telephone to utilize the same line if necessary.
The FA-2J PLC will not initiate any phone calls. If any toll calls are made on the line it is from
personnel using the same line.
Page 4

4. KEPserver DDE INSTRUCTIONS

KEPserver
The KEPserver needs to be started first. Double click the KEPserver icon on the desktop and select
File/Open. Highlight the appropriate selection such as, COM1_Idec_DialModem and open the file.
Press the Green Icon or Mode/On-Line to activate the KEPserver DDE program. The Excel 97
spreadsheets access the Idec PLC through this internal Windows connection. After going on line
minimize KEPserver by pressing the - sign in the upper right corner of the open window. The
program will now appear on the bottom of the screen in the Windows Taskbar. The necessary Excel
97 spreadsheets can now be opened.

Excel Dialer Spreadsheets


A total of three Excel 97 spreadsheets are used to dial a remote site and monitor/change setpoints
within the Idec FA-2J PLC. The first spreadsheet is the Dialer spreadsheet. The phone numbers and
descriptions of the remote sites are entered into this spreadsheet. The second spreadsheet depends on
what version of the Idec program is being monitored or changed. There are about 30 different
programs in use for Rotondo Precast. Each one is assigned a program number. This is stored in PLC
Data Register 807 or D7. This value is displayed in the Dialer spreadsheet after connecting along
with the present Temperature and Humidity readings. These values will appear in the Dialer
spreadsheet after a valid connection is made and the two modems are communicating. A list of these
numbers appears in the Dialer spreadsheet along with our web site, www.HylandAutomation.com in
Technical Support/Idec PLC/ CEC/CEV/HUT Section.

Macros have been programmed in Excel 97 to load the desired phone number. Find the alpha
character that corresponds to the desired phone number and site location and press that character on
the keyboard while holding down the CTRL and SHIFT keys with the other hand. After the phone
number loads in cell A,1 press, CTRL SHIFT D, to begin dialing. The KEPserver program must be
running in the background and be minimized for these macros to work. When finished press, CTRL
SHIFT H to hangup the modems.

If additional phone numbers are required then go to File/Save As and select another filename such as
Dialer 2 to copy the Dialer spreadsheet to another file on the computer.

Excel Program Spreadsheets


After the dialer spreadsheet has made the proper connection the program monitoring spreadsheet can
be opened. These have names like CECMEDI1, MEDIMOD1, CEV24, KS7NJ1, etc. A date of the
last version is included as part of the file name to keep track of the latest versions programmed by
Hyland Automation Controls, Inc. Newer versions can be downloaded from our web site, as they
become available at http://www.HylandAutomation.com.
Page 5

Modem communications can be extremely slow. This spreadsheet may take a minute or two to
update all fields. The computer should have a minimum of 32MB of RAM Memory to load multiple
Excel spreadsheets. After a change is made it may take as long to see it change within the program.
Macros have been programmed into Excel 97 to change Setpoints, Force Outputs, reset the Elapsed
Hour Meters, or reset the Alarm Counters. Column B in the spreadsheet is the present status of
Setpoints for Temperature, Humidity, Inputs and Outputs. DO NOT ENTER ANY VALUES IN
COLUMN B. Entering the desired value in Column C does all Setpoint and Output Forcing changes.
If changing a Temperature or Humidity Setpoint replace the Column C value with the desired one and
press CTRL SHIFT W to write the Setpoint changes into the PLC. Column B will update with the
new changes in a minute or two.

Output Forcing
To Force Outputs go to the Output Forcing section in Column A of the spreadsheet after the
Temperature and Humidity section. Output Forcing Mode can be activated for one hour. Place a 1
in the Column C field to Start Output Forcing and a 0 in the Stop Output Forcing. Place a 1 in
any Load/Alarm that is not presently on to force it on. Press CTRL SHIFT F to activate output
forcing. Additional Loads/Alarms can be forced on by placing a 1 in the respective Column C cell
and pressing CTRL SHIFT F. To disable a Load/Alarm from output forcing return the respective
Column C cell to 0 (zero) and press CTRL SHIFT F. To disable all output forcing return the
Output Forcing Start cell to 0, all Loads/Alarm cells to 0, enter a 1 in the Stop Output Forcing cell,
and press CTRL SHIFT F. The Stop Output Forcing Cell should be returned to 0 and CTRL SHIFT
F pressed again. Care should be exercised when using Output Forcing. The main electrical service
may not be sized to allow all loads to energize at once. The Heat and A/C should never be on
together but could be done using Output Forcing. If certain loads such as the A/C are forced on and
do not energize it may be due to their minimum off timer. The PLC protects the A/C compressors
from short cycling with a minimum off timer for each. If an A/C has not been deenergized long
enough then it can not turn on until the internal PLC timer times out.

Elapsed Hour Meters


To reset the Elapsed Hour Meters for Loads go to Column G in the Output Section. Place a 1 in the
respective cell and press, CTRL SHIFT E. This will reset the Elapsed Hour Meter for the respective
load back to 0. The cell in Column G should be returned to 0 and CTRL SHIFT E pressed again to
return the cell to its proper default value.

Alarm Counters
To reset the Alarm Counters go to Column G in the Output Section. Place a 1 in the respective cell
and press, CTRL SHIFT C. This will reset the Alarm Counters for the respective load back to 0. The
cell in Column G should be returned to 0 and CTRL SHIFT C pressed again to return the cell to its
proper default value.
Page 6

Temperature and Humidity Data Log


The Idec PLC keeps a 30 day Data Log on board of Temperature and Humidity readings. The third
spreadsheet, TemperatureandHumidityDataLog, is used to monitor these readings. There are no
macros on this spreadsheet. After the dialer has connected this spreadsheet can be opened to monitor
these readings. Microsoft Excel can experience some crashing problems if over 200 cells are
monitored using DDE. Therefore, we separated the Data Log into its own spreadsheet since it has
over 180 DDE linked cells on its own. To reduce the likelihood of Excel crashing only the Dialer and
one other spreadsheet can be opened at one time. The Dialer has to remain open to be able to
terminate the call. The Program Name spreadsheet and the Data Log spreadsheet cannot be opened at
the same time.

Exiting the Program


When all desired changes are made go to File/Close or click on the lower X in the upper right corner.
DO NOT EXIT EXCEL. The Dialer spreadsheet is still opened and must be maximized to hang up
the modem. Press the middle icon in the upper right corner of the Dialer spreadsheet to maximize it
and press, CTRL SHIFT H, to hang up the modems. The modems will disconnect each other. When
the OH LED on the modem turns off Excel can now be completely closed down using the top X in
the upper right corner or File/Exit. The KEPserver now needs to be maximized and the Red Stop
Icon pressed or go to Mode/Off-Line. The KEPserver can now be closed.

S-ar putea să vă placă și