Hcp Works Programming Manual
Hcp Works Programming Manual
HCP - Works Programming software for HCFA HCA1, HCA2, HCA8 series PLC
Contents
Chapter 3 Initialization
3.1 Creating a Project ······································································································································· 22
3.2 Opening a Project ······································································································································ 22
3.3 Closing a Project ········································································································································ 23
3.4 Saving a Project ········································································································································· 23
3.5 Saving a Project with a New Name ······································································································· 24
3.6 Deleting a Project ······································································································································ 24
3.7 Verifying Data in Projects ························································································································ 25
3.8 Starting Multiple Projects ························································································································· 25
7
1.1 Functions of HCP - Works
HCP – Works is the programming software used for HCFA programmable controller (PLC) settings, programming,
debugging and maintenance.
Creating projects
The functions are available for editing in the ladder language.
Ladder Program
Parameter setting
Setting the parameter and I/O of CPU module and parameter of special module can be done.
8
Write to/Read from programmable controller CPU
By the functions of “ Write to PLC ” / ” Read from PLC ” , created sequence programs can be written to or read
from programmable controller CPU.
In addition, sequence program, when programmable controller CPU is during RUN, can be changed by Write during
RUN.
Monitoring/Debugging
The created sequence program can be written to programmable controller CPU, and the current device values can
be monitored online.
Monitoring / Debugging
9
1.2 Programming Procedures of HCP- Works
The section explains the general operating steps from the creation of a program to the execution of
the created program in the programmable controller CPU.
Start
Create/Open a project
Set parameters
Edit/Change comments
Write parameters/programs
to the CPU
10
1.3 Connecting to HCFA Website
Operating steps
Operating steps
11
12
Chapter 2 Screen Configuration and Basic Operation
This chapter explains the screen configuration and basic operation of HCP – Works.
13
2.1 Starting and Exiting HCP-Works
This section explains the operation methods of starting/exiting HCP-Works.
Starting HCP-Works
Operating procedure
Start menu [All programs] [HCP - Works(En)] [HCP Works]
Exiting HCP-Works
Operating procedure
Select [ Project ] [Exit HCP Works]
14
2.2 Switching Display Language
HCP - Works supports multi-language display.
Screen display
Operating procedure
Tools [ Language setting ]
REMARK
Before switching the display language, please close all the projects and pay attention to save the files.
15
2.3 Screen Configuration
This section explains the main frame (basic screen) of HCP - Works that is displayed when it is started up.
Project display
Toolbar
Work window
Navigation
window
Status bar
16
2.4 List of Functions
[Project]
[New project] Creates a new project.
[Open project] Opens an existing project.
[Close project] Closes an open project.
[Save] Saves a project.
[Save as] Names and saves a project.
[Delete project] Deletes an existing project.
[Verify] Verifies between two project data.
[Change PLC type] Changes the programmable controller CPU type
[Import files]
[Print] Prints the open screen.
[Print setup] Changes the printer settings.
[Print preview] Displays the print preview of the open screen.
[Recent file]
[Start new HCP-WORKS]
[Exit HCP-WORKS] Exits HCP-WORKS
[Edit]
[Undo] Restores the previous processing status.
[Redo] Restores the processing deleted with [Undo].
[Cut] Cuts the selected data.
[Copy] Copies the selected data
[Paste] Pastes the cut or copied data at the cursor position.
[Qpaste] QPaste
[Delete] Deletes the selected data.
[Select All] Selects all items.
[Insert row] Adds a row above the cursor position.
[Delete row] Deletes a row at the cursor position.
[Insert col] Adds a column above the cursor position.
[Delete col] Deletes a column at the cursor position.
[Insert NOP batch] Inserts an NOP in front of the ladder block at the cursor position
[Delete NOP batch] Batch-deletes NOPs in the program being edited.
[Comment documentation] Comment documentation
17
[Ladder]
[Edit mode] Edits the target.
[Open contact] Inserts open contact at the cursor position.
[Close contact] Inserts close contact at the cursor position.
[Open branch] Inserts open branch at the cursor position.
[Close branch] Inserts close branch at the cursor position.
[Coil] Inserts coil at the cursor position.
[Application instruction] Inserts application instruction at the cursor position.
[Rising pulse] Inserts rising pulse at the cursor position.
[Falling pulse] Inserts falling pulse at the cursor position.
[Rising pulse open branch] Inserts rising pulse branch at the cursor position.
[Falling pulse open branch] Inserts falling pulse branch at the cursor position.
[Horizontal line] Inserts horizontal line at the cursor position.
[Vertical line] Inserts vertical line at the cursor position.
[Delete horizontal line] Delete horizontal line
[Delete vertical line] Delete vertical line
[Invert operation results] Invert operation results
[Convert operation results to rising pulse] Convert operation results to rising pulse
[Convert operation results to falling pulse] Convert operation results to falling pulse
[Draw line mode] Draws line.
[Delete line mode] Deletes line.
[Delete device mode] Deletes device.
[Search / Replace]
[Cross reference list] Displays the usage of selected device or label.
[Instruction list] Instruction list.
[List of used devices] Displays the usage of devices.
[Find device] Searches a device/label in the program.
[Find instruction] Searches an instruction.
[Find contact or coil] Searches a contact or coil corresponding to the specified device.
[Find step no] Searches the step no..
[Find character string] Searches a string.
[Replace device] Replaces a device/label in the program.
[Replace instruction] Replace an instruction.
[Replace character string] Replace a character string.
Changes an open contact to a closed contact, or closed
[Change open/ close contact]
contact to an open contact.
[Device block replacement] Device batch replace, batch-replaces devices with the specified device.
[Change TC setting] Batch-changes timer/counter setting values used in the program.
Moves the cursor from the current position to the start of the next
[Jump to next ladder block]
ladder block.
Moves the cursor from the current position to the start of the
[Jump to last ladder block]
previous ladder block.
18
[Convert / Compile]
[Convert ] Convert
[Convert (Online change)] Convert (Online change)
[View]
[Toolbar] Displays/hides the toolbar.
[Status bar] Displays/hides the status bar.
Sets the display color such as labels, device comments on
[Color and Font]
the work window.
[Comment] Displays comment.
[Statement] Displays statement.
[Note] Displays notes.
[Comment lines] Number of comment lines.
[Hide ladder block] Hides a ladder block at the cursor position.
[Show ladder block] Displays a hidden ladder block at the cursor position.
[Display device program] Displays device program.
[Zoom] Changes the display magnification of the ladder.
[String size] Enlarges or reduces the text display size on the editing screen.
[Label information] Label information.
[Application Instruction help] Application Instruction help.
[Alias] Alias
[Online]
[Transfer setup] Transfer setup.
[Read from PLC] Reads data from the programmable controller CPU.
[Write to PLC] Writes data to the programmable controller CPU.
Remotely controls RUN/PAUSE/STOP of the programmable controller
[Remote operation]
CPU from HCP Works.
[Set clock] Sets the clock in the programmable controller CPU.
[Logkeyword] Keyword register.
[Keyword setup] Keyword protection
[PLC memory] PLC memory operation.
[Monitor] Monitor
[Device batch write] Device batch write
19
[Tools]
[Check program] Checks programs of the project without labels and displays errors.
[Check parameters] Checks parameters and displays errors.
[Merge data] Merge data.
[Delete unused comments] Deletes unused comments.
[Clear all parameters] Delete all parameters.
[Set TEL data] Sets TEL data, links by modem.
[Special module easy setup] Special module easy setup.
[Modify editing mode] Modifies editing mode.
[Customize shortcut keys] Changes the settings of the shortcut keys.
[Change display color] Sets the display color.
[Language setting] Sets the language.
[PLC diagnostics] Diagnoses the operating status of the programmable controller CPU.
[Options] Sets various options.
[Window]
[Cascade] Tiles windows in overlapping display.
[Tile vertically] Tiles windows vertically
[Tile horizontally] Tiles windows horizontally.
[Arrange icons] Arranges the icons at the bottom of the window.
[Close all windows] Closes all open windows.
[Windows list] Displays a list of open windows.
[Help]
[PLC error] Displays the explanation for each CPU error code.
[Input state] Inputs state.
[Special relay/register] Displays the explanation for each special relay and special register.
[Key operation list] Key operation list.
[Help index] Helps index.
[Product information] Displays the product information.
[Product update] Updates the product.
[Connect to HCFA website] Connects to HCFA website.
[HCP Works Manual] HCP Works Manual.
[Debug Report] Debug Report.
20
Chapter 3 Initialization
This section explains the common operation and management for HCP-Works.
21
3.1 Creating a Project
Creating a project
Operating procedure
Opening a project
Operating procedure
22
3.3 Closing a Project
Closing a project
Operating procedure
Saving a project
Operating procedure
23
3.5 Saving a Project with a New Name
Deleting a project
Operating procedure
24
3.7 Verifying Data in Projects
25
26
Chapter 4 Creating and Editing Ladder Programs
This section explains the functions of the ladder editor for editing ladder programs.
27
4.1 Precautions on Ladder Display Window
1 . A created ladder block must be less than 24 lines. Excess lines cause an error.
2 . A ladder line can consist of 11 contacts plus 1 coil.
3 . The number of device comment edit characters can be set to 32 characters.
28
4.3 Inputting Contacts and Applied Instructions
For input with tool buttons, click ,and enter“X0”with the keyboard.
For input with function keys, press F5 key with the keyboard to enter “X0”.
29
Application instruction input procedure
For input with tool buttons, click ,and enter "MOV K1 D0" with the keyboard.
For input with function keys, press F8 key with the keyboard to enter "MOV K1 D0".
For input with tool buttons, click ,and enter "OUT Y0" with the keyboard.
For input with function keys, press F7 key with the keyboard to enter "OUT Y0".
30
4.4 Inputting lines (Vertical or Horizontal Lines)
Drawing lines
2 . Draw a line.
For input with tool buttons, click and drag the cursor to draw a line.
For input with function keys, press F10 key and drag the cursor to draw a connecting line.
31
Drawing vertical line
For input with tool buttons, click or press (Shift+F9) to enter the number of vertical lines to be input in the vertical
line input window.
For input with tool buttons, click or press F9 in the keyboard and enter the number of horizontal lines to be input
in the horizontal line input window.
32
4.5 Deleting Contacts and Applied Instructions
Deleting procedure
2 . Press“Delete”key.
1 . Move the cursor to the outside of the left base line at the top of the program.
3 . Press“Delete”key.
33
4.6 Deleting Connecting Lines
Deleting procedure
For deletion with tool buttons, click and drag the cursor through a line to be deleted.
34
4.7 Inserting/Deleting a Line between Ladder Blocks
35
For column insertion (in one-ladder block)
36
4.8 Entering a Pointer (P) and Interrupt Pointer (I)
Entry procedure
1 . Move the cursor to the left of the base line where a pointer (P) or interrupt pointer (I) is to be entered.
3 . Click the“OK”button.
When entering a pointer P10
37
4.9 Cutting, Copying and Pasting Ladders
For copying,
3 . Click the location in which the cut or copied circuit is to be pasted to set the cursor there.
38
4.10 Undoing and Redoing the Last Operation
Purpose
Cancel the last operation (cut, copy, or paste) and restore the previous state.
【Operating procedure】
Select【Edit】 【Undo】。
39
40
Chapter 5 Comments, Statements and Notes
This chapter explains how to create and edit comments, statements and notes .
41
5.1 Creating Device Comments
【Operating procedure】
42
5.2 Creating Device Comments for the Created Ladder
【Operating procedure】
1 . Select【Tools】 【Options】.
43
2 . Move the cursor to a device comment creation location and double click or press the “Enter” key.
44
5.3 Creating Statements
【Operating procedure】
Select【View】 【Statement】 。
45
5.4 Switching to Statement Edit Mode
【Operating procedure】
1 . Select【Tools】 【Options】 。
46
2 . Move the cursor to the position shown in the following figure. Double click the left mouse button or press
“ENTER” key .
3 . Enter the statements in the ladder input dialog box and click “OK”.
47
5.5 Creating Notes
【Operating procedure】
Select【View】 【Note】 。
48
5.6 Switching to Note Edit Mode
【Operating procedure】
1 . Select【Tools】 【Options】 。
49
2 . Move the cursor to the position shown in the following figure. Double click the left mouse button or press
“ENTER” key.
3 . Enter the notes in the ladder input dialog box and click “OK” button .
50
Chapter 6 Setting the Parameters
51
6.1 Setting the PLC Parameters
Screen display
Double click【Project parameter】in the navigation project list 【PLC parameter】to set the parameters.
52
6.2 PLC Parameter Item Lists
Classification Project Contents
Program capacity The number of steps available for sequence program is displayed here. -
Special function Select whether the special unit initial value settings and positioning settings
-
memory capacity will be used or not.
54
Setting devices (Set the latch range)
State Set the latched (battery backed) state relay range. Initial value: 500 to 999 0 to 999
Counter (16bit) Set the latched (battery backed) 16-bit counter range. Initial value: 100 to 199 0 to 99
Counter (32bit) Set the latched (battery backed) 32-bit counter range. Initial value: 220 to 255 220 to 255
Data register Set the data register range (battery backed). Initial value: 200 to 511 0 to 511
55
PLC name setting
32 half-width characters
(or 16 full-width characters)
56
Special function block setting
Set the name of each special function block/unit whose 32 half-width characters
Unit Name
initial values are to be set. (or 16 full-width characters)
57
Set item Contents Of Setting Setting range
"Unit No." tab Select the unit number of a special function block/unit to be set. -
Set the name of a special function block/unit whose initial values are to 32 half-width
be set. characters
Unit Name
(The contents set on "I/O assignment" tab are displayed.) (or 16 full-width
characters)
This column indicates the order of initial value setting in the selected unit
No. number. -
Numbers 1 to 98 can be set.
Set the buffer memory address (BFM number) in a decimal value whose
Address *1
initial value is to be set.
This column is displayed when device comments are registered.
Comment On the above screen, "Input mode of CH1 to CH4" is registered as the -
device comment for "U0\G0" (unit No. 0, BFM #0).
Set a value to be set as the initial value of the buffer memory address
Value (BFM number). *2
Set the data length and type of the set value in "Size/Type" column.
Select the size and type of a value set to the buffer memory among the
following:
16bit/DEC
Size/Type -
32bit/DEC
16bit/HEX
32bit/HEX
Check the Put a check mark to check the model code of the special function block/
identification code unit before initialization. -
before initializing
Identification code Set the model code of the special function block/unit. -
*1. Input buffer memory addresses (BFM numbers) that in the connected special function block/unit hold.
*2. To each buffer memory address (BFM number), set a value within the allowed range in the connected
special function block/unit.
58
Setting the PLC system (1)
59
Setting the PLC system (2)
Put a check mark when using the selected serial port in "computer link",
Operate "no-protocol communication" or "inverter communication". -
communication Do not put a check mark when transferring and monitoring sequence
setting programs in HCP-Works or when using the selected serial port in
simple N : N link or parallel link.
Protocol
Data length
Parity
Stop bit
Transmission speed
Header
Control line
H/W type
Control mode
Sum check
Transmission control
procedure
Station number
setting
Acceleration time [ms] Set the acceleration time for each output number of pulse. Initial value: 100 50~5000
Deceleration time [ms] Set the deceleration time for each output number of pulse. Initial value: 100 50~5000
Set the interrupt input*3 for DVIT (FNC151) instruction for each output
number of pulse. Specify a user interrupt command device (M) for a
pulse output destination device not used in DVIT instruction.
Initial setting: Setting range:
Interruption input of
Pulse output destination Y000: X000 X000 to X007, M8460 As shown on the
DVIT
Pulse output destination Y001: X001 X000 to X007, M8461 left
instruction
Pulse output destination Y002: X002 X000 to X007, M8462
Pulse output destination Y003: X003 X000 to X007, M8463
Y0 They are set items for the pulse output destination Y000. -
Y1 They are set items for the pulse output destination Y001. -
Y2 They are set items for the pulse output destination Y002. -
Y3 They are set items for the pulse output destination Y003. -
Y1 Set the positioning table for the pulse output destination Y001. -
Y2 Set the positioning table for the pulse output destination Y002. -
Y3 Set the positioning table for the pulse output destination Y003. -
Set the head number of devices storing the set data (pulse number D0 - D6400
and frequency). R0 - R31168
1600 devices (HCA8) are occupied
Head Address. starting from the head device number set here without regard to the
number of axes. Initial setting: R0
No. This column shows the table number. Numbers 1 to 100 can be set. -
62
Chapter 7 Find and Replace
This section explains the method for finding and replacing the specified device, comment and instruction.
63
7.1 Finding a Device
【Description】
Find device
Designates a device to be searched.
For label programming.
When a device search is made in the ladder/list mode, only the completely matching character
string of the device is searched for.
Find direction
Sets a search direction.
■ Find from top to bottom
Searching takes place from step 0 to the END instruction.
■ Find from cursor bottom
Searching takes place from the cursor position to the END instruction.
■ Find from cursor to top
Searching takes place from the cursor position to step 0.
64
7.2 Finding an Instruction
【Operating procedure】
【Description】
Instruction
Designates an instruction symbol and an instruction name for search.
The following lists the symbols that can be designated:
65
7.3 Finding a Character String
Searches for a character string in the edit window for programs, device comments, or device memories.
【Operating procedure】
【Description】
Find character string
Designates the character string to be searched for.
Enter a character string to be searched for in up to 64 characters.
66
7.4 Finding a Contact/Coil
Search for a contact or coil corresponding to the device at the cursor position.
【Operating procedure】
1 2 3
【Description】
1 Contact or coil select
Choose the contact or coil.
3 “Find” button
Click this button to search for the specified device.
A search starts from the beginning of the program.
If there are two or more programs, the other programs will be searched.
67
7.5 Replacing a Device
Replaces a device or character string constant in the program currently being edited.
【Operating procedure】
【Description】
Earlier device
Designates a device or character string constant (before change) to be replaced.
New device
Designates a device or character string constant (after change) for replacement.
No. of substitute
Designates the number of devices to be replaced among the devices designated by earlier
device setting.
Alternatively, you can specify the substitute count in decimal or hexadecimal.
For label programming
When specifying by label, limit the number of replacement points to 1.
Move comments
Designates whether to move the comments and Alias attached to a device together.
68
POINTS
■ Device specification
■ When a replacement range is given, it is effective only for open programs at present and searching for
Device replacement cannot take place between the 16-bit counters and 32-bit counters.
69
7.6 Replacing a Batch of Devices
1 2 3 4
5 6
【Description】
1 Earlier device
Specify the device or character string constant or label to be searched for.
2 New device
Specify the replacement device or character string constant or label.
3 Points
Set how many points will be replaced starting from the one specified as "Earlier device".
The points must be specified in decimal or hexadecimal.
4 Points format
Select decimal or hexadecimal format.
5 Target Program
Select the target program for replacement.
6 Option
Move comments and aliases
Set whether the comments and device names will be moved together with the corresponding device.
Include SFC block information in find targets
Set whether the devices used in block information of each block will also be the target for replacement.
70
POINTS
■ Up to 32 device block replacement settings can be made.
■ When the label set in earlier or new device is not defined, an error occurs in
compiling of the target label program.
71
7.7 Replacing an Instruction
【Description】
1 Earlier instruction
Designates an instruction (before change) to be replaced.
2 New instruction
Designates an instruction (after change) for replacement.
POINTS
1. An instruction plus device can be designated for instruction input. Only the ladder symbol can also be
designated.
2. The replaced instruction is not executed unless it is logical.
3. The number of steps changes for instruction replacement.
■ For the replacement of a 16 bit (word) handling instruction by a 32 bit (double word) handling
instruction in instruction replacement, if a constant has been specified for the device, it will be
changed as follows.
Negative constant of K (example: K-1)→Sign extension is made (K-1)
For H, constant whose bit corresponding to the sign is ON (example: HFFFF)→ sign extension is
not made and the constant is converted as it is (H0000FFFF)
Changing the contacts (open contact/close contact) of the program currently being edited
【Operating procedure】
Select【Find/Replace】 【Change open/ close contact】.
【Description】
Device
Designates a device for which contacts A and B are to be switched.
Number of substitutes
Designates the number of consecutive devices (including a designated device) for which
contacts A and B are to be switched.
POINTS
■ Device specification
Extended specifications and bit No. modifications are valid for device specification, but index
modifications are not valid
■ The open contact and close contact of the following instructions can be switched.
73
7.9 Replacing a Character String
Replaces the character string on each edit window for programs, device comments, or
device memories.
【Operating procedure】
Select【Find/ Replace】 【Replace character string】
【Description】
Earlier character string
Designates the character string (before change) to be replaced.
Enter a character string to be replaced (statement before change) in up to 64 characters.
POINTS
■ Search with “Find Next” button
74
7.10 List of Used Devices
1 6
【Description】
1 Target the whole program
Click the radio button to display a device-use list for all programs in the project.
3 Find device
Designates the first device to be searched for.
Click button moves the screen up or down by 512 points.
(Clicking the scroll bar moves the screen by 512 points.)
In a single search, 512 points shown in the display area are searched.
When the cursor is on the device list, you can scroll the screen using [Ctrl] + [PageUp] / [PageDown].
75
5 Device-use Instruction list
Items Description
Instruction lists devices in such a way that the device designated in
Device
the search device is listed first.
Displays”*” when the device has been used in the source of the
-||-
instruction.
Displays”*” when the device has been used in the destination of
-( )-
the instruction.
Count Indicates the frequency of coil usage.
Displays "ERR" when the device has been used only in the source or
Error
the destination.
Displays a comment attached to the device.
Comment
Clicking the scroll bar moves the screen by 512 points.
6 【Execute】 button
Click this button after designating a search program or a search device.
A device-use list contains the instructions used and their frequency in such a way that the
device designated in the search device comes first.
POINTS
■ When ZR is designated, 8,192 devices (including the designated device as the first one) are
searched.
To display out-of-range devices, the devices must be designated again.
Page scroll takes place within 8,192 devices listed.
■ When two or more windows are open, the result of comment editing on the deice use list screen is
■ If there is an unconverted ladder, the device use list function can be used.
■ For label program creation, this function does not support label devices. Make an "N/O"/"N/C"
contact change after searching for a label device in the contact/coil use list.
76
7.11 Converting a Ladder Program
The edited and modified ladder program will be shown in grey. This kind of ladder program cannot be saved and
written to PLC. Please convert and compile the ladder program .
77
78
Chapter 8 Reading from/Writing to PLC
This chapter explains the access to the PLC, reading data from/writing data to PLC.
8.4 Precautions for Writing Rise and Fall Instruction during RUN
79
8.1 Transfer Setup
Specify the connection target when accessing the host station via serial port or USB.
【Operating procedure】
80
8.2 Reading from PLC
Reading the ladder program, parameters and device comment from PLC
【Operating procedure】
1 . Select【Online】 【Read from PLC】to open the dialog box as follows.
2 . Select【Execute】.
81
8.3 Writing to PLC (Writing during RUN)
【Operating procedure】
1 . Select【Online】 【Write to PLC】to open the dialog box as follows .
2 . Select【Execute】
When the PLC state is during RUN, it cannot be written. The following dialog box will pop up to confirm
whether to execute STOP. If select 【Yes】, continue to write to PLC. If select 【No】, stop writing .
82
8.4 Precautions for Writing Rise and Fall Instruction during RUN
Rise instruction
When the online change of the ladder including the rise instruction is completed, the written rise instruction is
executed if its target device or operation condition device is ON.
Target rise instruction ........ LDP, ANDP, ORP, pulse execution type application instruction (e.g. MOVP).
When online change is performed to the ladder block that includes rise detection instruction (LDF instruction/ANDF instruction/ORF instruction)
The contacts of LDF, ANDF and ORF instruction included in the ladder The contacts of LDF, ANDF and ORF instruction included in the ladder
When online change is performed to the ladder block that includes pulse execution type application instruction (e.g. MOVP)
The relevant pulse execution type application instruction included in the The relevant pulse execution type application instruction included in
ladder block operates for 1 scan. the ladder block does not operate
When online change is performed to the ladder block that includes PLS instruction
When PLF instruction is included in a ladder block, the target device for the instruction does not operate.
Operates when the operation condition changes from ON to OFF before and after online change.
Fall instruction
When the online change of the ladder including the fall instruction (LDF instruction/ANDF instruction/ORF
instruction) is completed, the written fall instruction is not executed if its target device is ON or OFF
The fall instruction (PLF instruction) is not executed, either, if its operation condition device is ON or OFF.
To execute the fall instruction, turn the target device or operation condition device from ON to OFF again.
When online change is performed to the ladder block that includes fall detection instruction (LDF instruction/ANDF instruction/ORF instruction)
The contacts of LDF, ANDF, and ORF instruction included in the ladder block keep OFF status.
When online change is performed to the ladder block that includes PLF instruction
When PLF instruction is included in a ladder block, the target device for the instruction does not operate.
Operates when the operation condition changes from ON to OFF before and after online change.
83
Convert the operation result to raising pulse
If the operation result to convert the operation result to raising pulse instruction is on after writing a ladder
including convert operation results to falling pulse instruction (MEP instruction) in RUN, the instruction execution
result turns out to be ON.
When online change is performed to the ladder block including MEP instruction
The operation result to MEP instruction is ON. The operation result to MEP instruction is OFF.
The execution result turns out to be ON. The execution result turns out to be OFF.
When writing a ladder including convert operation result to falling pulse instruction (MEF instruction) in RUN,
the instruction is not executed whether its execution condition is established or not.
To execute the convert operation result to falling pulse instruction, turn on the operation result to the
instruction once and then turn it off.
When online change is performed to the ladder block including MEF instruction
84
8.5 Precautions for Writing during RUN
Items Description
• Change cannot be made if any ladder before or after corrections includes the output (OUT) instruction of
Use of
high-speed counter C235 to 255 or the application instruction (MNET, ANRD, ANWR, RMST, RMWR, BLK, MCDE).
HCA1/LX1S/DDUP、
• There should be no new 1ms retentive timers inserted.
HCA2/LX1N
• If the number of program steps is decreased due to delete of contact, coil or application instruction, write
• Change cannot be made if any ladder before or after corrections includes the output (OUT) instruction of
high-speed counter C235 to 255 or the application instruction SORT2, TBL and RBFM, WBFM.
• If the number of program steps is decreased due to delete of contact, coil or application instruction, the
step numbers in the program after the one changed online decrease by the number of the decreased steps
• Do not perform the online change (write during RUN) during the pulse output (during the instruction
Use of driving) with the positioning instruction of DSZR, DVIT , ZRN, PLSV, DRVI, DRVA. When the ladder during the
HCA8/HCA8C pulse output is performed the online change, the pulse output is stopped.
FPLSV [without acceleration/deceleration operation] is instantly stopped. DSZR, DVIT, PLSV [with
When the instruction is stopped by the online change, turn off the instruction driving once and then, turn on it.
• Do not perform the online change (write during RUN) during communication (during the instruction driving)
in the inverter communication instruction of IVCK, IVDR, IVRD, IVWR, IVBWR. When performing the online
change during the inverter communication, the communication may be stopped. When the communication is
85
8.6 Action to be Taken When Normal Online Change is not Executed
The following message may be displayed during online change (RUN write processing) because of timeout of the
check time. In this case, observe the message instructions.
1 . "Verify with PLC and confirm the matching of the program." When this message is displayed, the program on
the HCP - Works side may not be converted while the program on the programmable controller side has
converted.In this case, convert the program on the HCP - Works side and then check the consistency with the
programmable controller side. When inconsistency is found, load the program into the programmable
controller by executing PLC downloading to When inconsistency is found, load the program into the
programmable controller by executing PLC downloading to make both programs consistent.
86
Chapter 9 Monitoring and Debugging Programs
This chapter describes the monitoring of the operation processing of the programmable controller
87
9.1 Starting/Stopping Monitoring
【Start monitoring】
【Stop monitoring】
【Ladder monitoring】
【Description】
Ladder monitoring: During monitoring, the ON/OFF states of contacts and coils and the present values of
devices are displayed, and they change in accordance with the operating state of the
programmable controller.
Present value motoring: Displays the present values of word devices. The present values can be switched
between decimal and hexadecimal.
88
9.2 Conducting a Device Test
Forcibly turns ON/OFF the bit devices of the programmable controller, and changes the
present values of word devices.
【Operating procedure】
【Description】
FORCE OFF button: Forcibly turns the designated bit device OFF.
Designates the first I/O number (lowest digit unnecessary) and buffer memory address
Buffer memory :
(decimal/hexadecimal) of the monitoring special function module.
Setting value: Before setting the value, designate decimal or hexadecimal, and 16-bit integral value, 32-bit
integral value, real number (single precision), or real number (double precision)
Hide history (Display history) : Select whether the execution result of device test is to be displayed or hidden.
Set button: Click this button after making the necessary settings.
89
9.3 Device Batch Monitor
【Operating procedure】
【Description】
Start monitor: Clicking this button after setting the device (buffer memory address) starts monitoring.
Device test: Clicking this button displays the device test dialog box.
Device batch monitor : The designated device is displayed in accordance with the monitor format, display, value, and option
settings.
90
Chapter 10 Registering Keyword
93
10.1 Registering new Keyword/Changing Keyword
Registering a new keyword to the programmable controller or changing the entry code.
【Operating procedure】
1. Select【Online】 【LogKeyWord】 【NewLog】,the following dialog box pop up.
【Description】
Keyword input: Set the keyword ( eight characters including numbers and alphabets from A to F)
Set a second keyword (eight characters including numbers and alphabets from
2nd keyword:
A to F) Only for HCA8 / HCA8C series PLC
The second keyword can be set after inputting the first keyword.
Read/Write protection
Protection level :
Writing, reading, and verification are restricted.
Write protection
Writing, reading, verification, and device monitor are restricted. Only for HCA8 / HCA8C series PLC
2. Select【Execute】 and the dialog box of “Keyword confirmation” pop up to confirm the keyword.
94
10.2 Deleting a Keyword
【Operating procedure】
【Description】
Keyword: Set a keyword (eight characters including numbers and alphabets from A to F)
Set the 2nd keyword (eight characters including numbers and alphabets from A toF)
2nd keyword:
Only for HCA8 / HCA8C series PLC
The second keyword can be set after inputting the first keyword.
95
10.3 Disabling a Keyword
Releases the lock imposed by a keyword in order to allow access to the programmable
controller for which the keyword is registered.
【Operating procedure】
1. Select【Online】 【LogKeyWord】 【LogReplace】,and the dialog box of disabling keyword pops up.
【Description】
Keyword: Set a keyword (eight characters including numbers and alphabets from A to F)
Set the 2nd keyword (eight characters including numbers and alphabets from A toF)
2nd keyword:
Only for HCA8 / HCA8C series PLC
The second keyword can be set after inputting the first keyword.
96
10.4 Registering Passwords & Password Protection
【Operating procedure】
97
3. Set “Edit password”.
【Description】
Edit password: Administrator password. Can do all the operations in the ladder.
Download PW: Some operations are limited for the user according to the selection.
Keyword input: Set the keyword ( eight characters including numbers and alphabets from A to F)
Set a second keyword (eight characters including numbers and alphabets from
2nd keyword:
A to F) Only for HCA8 / HCA8C series PLC
The second keyword can be set after inputting the first keyword.
Read/Write protection
Protection level :
Writing, reading, and verification are restricted.
Write protection
Writing, reading, verification, and device monitor are restricted. Only for HCA8 / HCA8C series PLC
98
10.5 Deleting a Password
【Operating procedure】
99
10.6 PLC Keyword
【Operating procedure】
【Description】 【项目说明】
100
Chapter 11 Program Check and Diagnostics
101
11.1 Remote Operation
【Operating procedure】
102
11.2 Setting Clock
【Operating procedure】
103
11.3 Clearing PLC Memory
【Operating procedure】
1. Select【Online】 【PLC Memory】 【Clear PLC memory】and the dialog box pops up .
104
11.4 Checking Program
【Operating procedure】
105
11.5 Checking Parameter
【Operating procedure】
106
11.6 PLC Diagnostics
【Operating procedure】
107
108
Chapter 12 Device Memory
This chapter gives an overview of the device memory and the settings.
109
12.1 Device Memory
Device name Classification of usage HCA1 / LX1S / DDUP HCA2 / LX1N HCA8 / HCA8C
Initial state S0 - S9 S0 - S9 S0 - S9
Increment for keeping(16 bits) C16 - C31 C16 - C199 C100 - C199
Both directions for general (32 bits) C200 - C219 C200 - C219
110
Device name Classification of usage HCA1 / LX1S / DDUP HCA2 / LX1N HCA8 / HCA8C
For special (16 bits) D8000 - D8255 D8000 - D8255 D8000 - D8511
Extension file
ER0 - ER32767
register
For branching of JUMP and CALL P0 - P63 (64 points) P0 - P127(128 points) P0 - P4095
Decimal number (K) (16 bits) -32768 - +32767 -32768 - +32767 -32768 - +32767
-2147483648 - -2147483648 - -2147483648 -
Decimal number (K) (32 bits)
+2147483647 +2147483647 +2147483647
Hexadecimal number(H)
(16 bits) 0 - FFFF 0 - FFFF 0 - FFFF
Hexadecimal number(H)
(32 bits) 0 - FFFFFFFF 0 - FFFFFFFF 0 - FFFFFFFF
Constant Decimal-point and
Real number(E) (32 bits) exponential notations are
possible.
Up to 32 one-byte
characters can be used for
Character string("")
a constant in an
instruction.
111