b-CAP Protocol (TCP) Driver
b-CAP Protocol (TCP) Driver
b-CAP Protocol (TCP) Driver
b-CAP Protocol
(TCP) Driver
1 System Configuration....................................................................................................... 3
2 External Device Selection ................................................................................................ 4
3 Communication Settings .................................................................................................. 5
4 Setup Items ...................................................................................................................... 9
5 Supported Device Addresses......................................................................................... 13
6 Device Code and Address Code.................................................................................... 40
7 Error Messages.............................................................................................................. 44
1
b-CAP Protocol (TCP) Driver
Introduction
This manual describes how to connect the Display and the External Device (target RC).
In this manual, the connection procedure will be described in the sections identified below:
1 System Configuration
) "1 System Configuration" (page 3)
This section lists the types of External
Devices and SIO that you can connect.
3 Communication Settings
)"3 Communication Settings" (page 5)
This section shows setting examples for
communicating between the Display and
the External Device.
4 Setup Items
)"4 Setup Items" (page 9)
This section describes communication
setup items on the Display. Set the
Display’s communication settings in GP
Pro-EX or in off-line mode.
Operation
1 System Configuration
The system configuration for connecting DENSO WAVE INCORPORATED's External Device and the Display is
shown below.
Connection Configuration
• 1:1 Connection
• 1:n Connection
• If you want to power down the system, end the communication first. You can end
communication using one of the following methods.
• View the offline mode screen on the Display.
• Set the HMI system variable (#H_ScanOffControl) to ON.
3 Communication Settings
Examples of communication settings of the Display and the External Device, recommended by Pro-face, are
shown.
Device Setting
To display the [Individual Device Settings] dialog box, from [Device-Specific Settings] in the [Device/PLC]
window, select the External Device and click [Settings] . To connect multiple External Devices, from
[Device-Specific Settings] in the [Device/PLC] window, click [Add Device] to add another External Device.
• To start a robot from the Display, set the startup authority to "Ethernet". When this setting is
made, however, startup from other devices than the Display become disabled.
9 Set the IP address (192.168.0.2) of the Display. Press [OK] to return to the Communications Setting Menu.
10 Press [Address F4].
11 Set the IP address of the External Device.
12 Press [OK].
Device Setting
To display the [Individual Device Settings] dialog box, from [Device-Specific Settings] in the [Device/PLC]
window, select the External Device and click [Settings] . To connect multiple External Devices, from
[Device-Specific Settings] in the [Device/PLC] window, click [Add Device] to add another External Device.
• To start a robot from the Display, set the startup authority to "Ethernet". When this setting is
made, however, startup from other devices than the Display become disabled.
4 Setup Items
Set up the Display’s communication settings in GP Pro-EX or in the Display’s off-line mode.
The setting of each parameter must match the External Device.
)"3 Communication Settings" (page 5)
• Set the Display’s IP address in off-line mode.
• Refer to the GP-Pro EX Reference Manual for information about Indirect Devices.
Cf. GP-Pro EX Reference Manual "Changing the Device/PLC at Runtime (Indirect
Device)"
Device Setting
To display the [Individual Device Settings] dialog box, from [Device-Specific Settings] in the [Device/PLC]
window, select the External Device and click [Settings] . To connect multiple External Devices, from
[Device-Specific Settings] in the [Device/PLC] window, click [Add Device] to add another External Device.
IP Address
• Check with a network administrator about IP address. Do not set the duplicate IP
address.
Enter a port number of the External Device, from 1 to 65535. For this driver, however, set
Port No.
the default setting of "5007".
• Please refer to the Maintenance/Troubleshooting Guide for more information on how to enter
offline mode or about operations.
Cf. Maintenance/Troubleshooting Guide "Offline Mode"
• The number of setup items that can display on one page in offline mode depends on the
Display in use. Please refer to the Reference manual for details.
Communication Settings
To display the setting screen, in offline mode's [Peripheral Settings] touch [Device/PLC Settings]. Touch the
External Device you want to set from the displayed list.
Device Setting
To display the setting screen, from [Peripheral Settings] touch [Device/PLC Settings]. Touch the External Device
you want to set from the displayed list, and touch [Device].
IP Address
• Check with a network administrator about IP address. Do not set the duplicate IP
address.
Enter a port number of the External Device, from 1 to 65535. For this driver, however, set
Port No.
the default setting of "5007".
The following section shows the range of supported device addresses. Please note that the actual supported range
of the devices vary depending on the External Device to be used. Please check the actual range in the manual of
your External Device.
*6
Variable S - S00000 - S32765
Variable IO - IO00000 - IO00511 *7
*1 *9
WORK settings - WORK0.0 - WORK7.5
AREA00.00 - *1 *10
AREA settings -
AREA31.12
SPDCNF0000 -
Using condition parameter -
SPDCNF0474
Special register 1 *11 *12
- CREG0 - CREG4
Controller
Error code - CODE0 *11 *13
*11 *15
Version string - VER0
*16 *17
Auto mode - AUTO0
Error clear - ERRCLR0 *16 *18
*11
Number of programs - PMAX0
PNAME001 - *11
Program name -
PNAME256
*11 *19
Current robot position - CPOS0 - CPOS6
Current robot position *11 *20
- CANG0 - CANG7
(each axis value)
Current robot position *11 *21
- CTRN0 - CTRN9
expressed (T type)
*11 *22
Special register 2 Robot - RREG0 - RREG9
Change the Tool *16 *23
- TOOLN0
coordinates
4-Axis
Element Register Size Attribute Type
0 X 32 Read/Write Float
1 Y 32 Read/Write Float
2 Z 32 Read/Write Float
3 T 32 Read/Write Float
4 unused 32 Read/Write Float
5 unused 32 Read/Write Float
6 Fig 32 Read/Write Int
*13 Stores the error code of the External Device's latest error.
*14 Stores the error message of the External Device's latest error.
*15 Stores the version of the External Device.
*16 Read disabled.
*17 Writes 1 for internal auto mode, writes 2 for external auto mode.
*18 You can clear errors on the External Device by writing a value.
*19 The address structure of Current robot position is as follows.
CPOS0
Element
Element Register Size Attribute Type
0 X 32 Read Float
1 Y 32 Read Float
2 Z 32 Read Float
3 RX 32 Read Float
4 RY 32 Read Float
5 RZ 32 Read Float
6 Fig 32 Read Int
*20 The address structure of Current robot position (each axis value) is as follows.
CANG0
Element
Element Register Size Attribute Type
0 J1 32 Read Float
1 J2 32 Read Float
2 J3 32 Read Float
3 J4 32 Read Float
4 J5 32 Read Float
5 J6 32 Read Float
6 J7 32 Read Float
7 J8 32 Read Float
*21 The address structure of Current robot position expressed(T type) is as follows.
CTRN0
Element
Element Register Size Attribute Type
0 X 32 Read Float
1 Y 32 Read Float
2 Z 32 Read Float
3 Ox 32 Read Float
4 Oy 32 Read Float
5 Oz 32 Read Float
6 Ax 32 Read Float
7 Ay 32 Read Float
8 Az 32 Read Float
9 Fig 32 Read Int
*25 This driver executes only tasks without arguments. Before executing tasks, perform the following operations.
1.Transfer RoboSlave.pac, RoboSlave.h and userextension.pac to the External Device.
2. Use the Teaching Pendent to set communication and startup settings.
3. Set 2 to the AUTO device.
While executing tasks on the External Device, if you run PSTR the Teaching Pendant will display the message,
"The same program is running." To prevent running two instances of PSTR, use PREG***.0 to check the task
status, and then run PSTR.
Write values and operations are as follows.
1. Run 1 cycle
2. Run continuously
3. 1 Step
4. Not supported
5. Retry (available when continue stopped)
Other than above: Not supported (error will display.)
*26 Before executing tasks, use the Teaching Pendant to change the External Device to Auto Mode.
Write values and operations are as follows.
0: Stop (default)
1: Pause
2: Step stop
3. Cycle Stop
4: Reset
5: Continue stopped
Other than above: Not supported (error will display.)
*27 Adjust the timeout value to use this command. The External Device will not respond until motor operation is
complete.
*28 This device restarts the Display.
When you restart the Display from the External Device, do not use the Special Switch's Reset operation. If you
do, you will not be able to reconnect to the External Device.
Communication is not possible as this is an internal device.
When executed, connections with all devices are terminated and the Display restarts. To shut down only the
Display, do so only after entering the offline menu or after off-scanning all devices.
*29 Gets the program name (full path) string, minus the file name.
*30 Gets the program name (full path) string, minus the folder name.
*31 To refresh the task name, execute the task after setting up the task name in the PNAME device.
• Please refer to the GP-Pro EX Reference Manual for system data area.
Cf. GP-Pro EX Reference Manual "LS Area (Direct Access Method Area)"
• Please refer to the precautions on manual notation for icons in the table.
AREA00.00 - *1 *8 *11
AREA settings -
AREA31.33
Special register 1 *12 *13
- CREG0 - CREG5
Controller
Error code - CODE0 *12 *14
*12 *16
Version string - VER0
Error clear - ERRCLR0 *17 *18
PNAME001 - *12
Program name - -
PNAME256
Current robot position - CPOS0 - CPOS6 - *8 *12 *19
*17 *38
File list - FILELIST0 -
VARLEN - VARLEN0 - VARLEN7 *12 *40
4-Axis
Element Register Size Attribute Type
0 X 32 Read/Write Float
1 Y 32 Read/Write Float
2 Z 32 Read/Write Float
3 T 32 Read/Write Float
4 unused 32 Read/Write Float
5 unused 32 Read/Write Float
6 Fig 32 Read/Write Int
*14 Stores the error code of the External Device's latest error.
*15 Stores the error message of the External Device's latest error.
*16 Stores the version of the External Device.
*17 Read disabled.
*18 You can clear errors on the External Device by writing a value.
*19 The address structure of Current robot position is as follows.
CPOS0
Element
Element Register Size Attribute Type
0 X 32 Read Float
1 Y 32 Read Float
2 Z 32 Read Float
3 RX 32 Read Float
4 RY 32 Read Float
5 RZ 32 Read Float
6 Fig 32 Read Int
*20 The address structure of Current robot position (each axis value) is as follows.
CANG0
Element
Element Register Size Attribute Type
0 J1 32 Read Float
1 J2 32 Read Float
2 J3 32 Read Float
3 J4 32 Read Float
4 J5 32 Read Float
5 J6 32 Read Float
6 J7 32 Read Float
7 J8 32 Read Float
*21 The address structure of Current robot position expressed (T type) is as follows.
CTRN0
Element
Element Register Size Attribute Type
0 X 32 Read Float
1 Y 32 Read Float
2 Z 32 Read Float
3 Ox 32 Read Float
4 Oy 32 Read Float
5 Oz 32 Read Float
6 Ax 32 Read Float
7 Ay 32 Read Float
8 Az 32 Read Float
9 Fig 32 Read Int
*24 This driver executes only tasks without arguments. Before executing tasks, perform the following operations.
1. Use the Teaching Pendent to set communication and startup settings.
2. Use the Teaching Pendent to change to Auto Mode.
While executing tasks on the External Device, if you run PSTR the Teaching Pendant will display the message,
"The same program is running." To prevent running two instances of PSTR, use PREG***.0 to check the task
status, and then run PSTR.
Write values and operations are as follows.
1. Run 1 cycle
2. Run continuously
3. 1 Step
4. Not supported
5. Retry (available when continue stopped)
Other than above: Not supported (error will display.)
*25 Before executing tasks, use the Teaching Pendant to change the External Device to Auto Mode.
Write values and operations are as follows.
0: Stop (default)
1: Pause
2: Step stop
3. Cycle stop
4: Reset
5: Continue stopped
Other than above: Not supported (error will display.)
*26 Adjust the timeout value to use this command. The External Device will not respond until the motor operation
is complete.
*27 Gets the program name (full path) string, minus the file name.
*28 Gets the program name (full path) string, minus the folder name.
*29 Using the Request to get control authority device
Device address for the arm group number. Use the device address associated with the arm group you want to
set up, and run a word-write operation to initialize its value.
If another device has control authority, you cannot get access to the device.
If a timeout occurs while the Display has control authority, you need to restart the External Device as the
connection is terminated without control authority.
*30 The address structure of Calculates destination coordinates TOOL coordinates is as follows.
The address where coordinates are stored depends on the DEVH100 and DEVH109 settings.
DEVH000
Element
Element Register Size Attribute Type
000 Command trigger 32 Write Int 2:Read, 4:Clear
001-099 Reserved 32 Read/Write
100 Pn1 argument setting 32 Read/Write Int 0: Variable type, 1: Element
101 Variable number 32 Read/Write Int
102 Pn1X 32 Read/Write Float
103 Pn1Y 32 Read/Write Float
104 Pn1Z 32 Read/Write Float
105 Pn1RX 32 Read/Write Float
106 Pn1RY 32 Read/Write Float
107 Pn1RZ 32 Read/Write Float
108 Pn1FIG 32 Read/Write Int
109 Pn2 argument setting 32 Read/Write Int 0: Variable type, 1: Element
110 Variable number 32 Read/Write Int
111 Pn2X 32 Read/Write Float
112 Pn2Y 32 Read/Write Float
113 Pn2Z 32 Read/Write Float
114 Pn2RX 32 Read/Write Float
115 Pn2RY 32 Read/Write Float
116 Pn2RZ 32 Read/Write Float
117 Pn2FIG 32 Read/Write Int
118-199 Reserved 32 Read/Write
P type X element calculate
200 32 Read/Write Float
result
P type Y element calculate
201 32 Read/Write Float
result
P type Z element calculate
202 32 Read/Write Float
result
P type RX element calculate
203 32 Read/Write Float
result
P type RY element calculate
204 32 Read/Write Float
result
P type RZ element calculate
205 32 Read/Write Float
result
P type FIG element calculate
206 32 Read/Write Int
result
207-299 Reserved 32 Read/Write
*31 Before executing tasks, use the Teaching Pendant to change the External Device to Auto Mode.
*32 Using Motion skip:
The device address shows the arm group number. Write the Motion skip algorithm setting to the same device
address as the arm group you want to set up.
*36 Using Select area interference check is performed and Initializes interference check:
Set the area number as the data, then run word write operation.
*37 To refresh the task name, execute the task after setting up the task name in the PNAME device.
*38 Using File read (FILEREAD), File write (FILEWRITE) and File list (FILELIST):
Set the control address number as the data, then run word write operation.
You can define the control address as USR memory only. (USR00000...USR29000)
*39 In automatic mode, External Device operation will stop when you run a write program file operation. Check
whether the CREG0 (Operation mode) device is writable, and design the system to prevent unintentional file
writes.
*41 The robot name device address structure is as follows. If more than 256 chracters are stored, the Display shows
up to the 256th character.
RBTNAME0
Element
Element Size Attribute Number of Word Type
String
0 16 Read 128
Robot model
• Please refer to the GP-Pro EX Reference Manual for system data area.
Cf. GP-Pro EX Reference Manual "LS Area (Direct Access Method Area)"
• Please refer to the precautions on manual notation for icons in the table.
Settings for File Reading Device, File Writing Device and File List Device
Read and write files by setting the operating status on the control address.
You can use the USR area only as the control address.
You can run operations on the following file types.
• PacScript source (*.PCS)
• PacScript header (*.H)
• Operation panel source (*.PNS)
• File reading
Reads the specified file to the Display from the External Device.
The file is saved to an internal device or external storage.
To run the read operation, write the control address' start address to the FILEREAD device.
• File writing
Writes the specified file to the External Device from the Display.
The write file is saved to external storage.
To run the write operation, write the control address' start address to the FILEWRITE device.
• File list
Outputs the list of files stored on the External Device.
The output list is saved to the specified address.
To run the output operation, write the control address' start address to the FILELIST device.
Use device code and address code when you select "Device Type & Address" for the address type in objects such
as data displays.
Device Code
Device Device Name Address Code
(HEX)
Program start PSTR 0079 Word address - 1
Program stop PSTP 007A Word address - 1
Motor ON/OFF MTON 007B Word address
Directory name PMAMED 007D (Word address - 1) x 128 *1
File name PNAMEN 007E (Word address - 1) x 128 *1
*1 When the External Device returns more than 256 bytes of text data, the Display stores 256 bytes of
text.
*2 When the External Device returns more than 128 bytes of text data, the Display stores 128 bytes of
text.
Device Code
Device Device Name Address Code
(HEX)
Calculates destination
coordinates TOOL DEVH 0091 Word address
coordinates
Motion skip MSKIP 00AE Word address
Move specified
MOVE 0092 Word address
coordinates
Relative movement
DRAW 0093 Word address
WORK coordinate
Absolute motion each axis DRIVEEX 0094 Word address
Select area interference
SETAREA 0095 Word address
check is performed
Initializes interference
RSTAREA 0096 Word address
check
File read FILEREAD 0099 Word address
File write FILEWRITE 009A Word address
File list FILELIST 009B Word address
VARLEN VARLEN 00AF Word address
RBTNAME RBTNAME 00B7 Word address*1
*1 When the External Device returns more than 256 bytes of text data, the Display stores 256 bytes of text.
*2 When the External Device returns more than 128 bytes of text data, the Display stores 128 bytes of text.
7 Error Messages
Error messages are displayed on the Display screen as follows: "No. : Device Name: Error Message (Error
Occurrence Area)". The description for each error is shown below.
Item Description
No. Error No.
Name of External Device where error occurs. Device name is a title of External Device set
Device Name
with GP-Pro EX. (Initial value [PLC1])
Error Message Displays messages related to the error which occurs.
Displays IP address or device address of External Device where error occurs, or error codes
received from External Device.
• Refer to your External Device manual for details on received error codes.
• Refer to "Display-related errors" in "Maintenance/Troubleshooting Guide" for details on the
error messages common to the driver.