1 - ER Series Industrial Robot Three Dimension Visual Debugging Manual
1 - ER Series Industrial Robot Three Dimension Visual Debugging Manual
-3-
Preface
Summary
Reader
This manual is intended only for trained professionals in the field of "control,
automation and drive Engineering" who are familiar with various applicable
national standards.
System producer: The operator who functions to diagnose a system.
A system integrator costs money to buy a system, either by working as a
technician at a machine tool manufacturer.
Pre-caution
Risk of injury
Failure to comply with the safety instructions associated with this
sign endangers personal life and health.
ER Series Industrial Robot Three Dimension Visual Debugging Manual
Robot vision is one of the important parts of the robot system, which means
the robot has the visual perception function. Robot vision can get environment of
3 d image through visual sensor, and carries on the analysis and interpretation
through visual processor, and then converted to command, used to change the
variable of the robot, a spot, IO, at the same time also need to get the robot's
variable, a spot, IO, the current position, such as command, let the robot can
identify objects, visual logic control.
Robots serve as TCP clients and visual devices serve as TCP servers.
The robot sends a string to the server through the command SendMessage,
and the content of the string is customized by the user. After the robot runs the
send data instruction SendMessage, the robot will send the given string to the
server device.
5
ER Series Industrial Robot Three Dimension Visual Debugging Manual
When vision sending a command string to the robot, the robot sends a reply
Ack to the server device
Interface Type
3: motion interface
6
ER Series Industrial Robot Three Dimension Visual Debugging Manual
instructions are basically not affected, and customers need to obtain error status
through instructions for error processing
D) Command queue instructions:
1) Clear the command queue
E) Movement instruction, detect the safety door signal, if there is a safety door,
feedback [SafeDoorIsOpen:XX], the instruction ends.
Note: Error, stop motion command cannot continue, do not support pause and
continue.
Visual commands need to be used together with visual software and external
cameras, and visual calibration needs to be carried out in advance.
7
ER Series Industrial Robot Three Dimension Visual Debugging Manual
value
IOGetAout
IOGetAin
IOGetSimDout
IOGetSimDin
IOGetSimAout
IOGetSimAin
8
ER Series Industrial Robot Three Dimension Visual Debugging Manual
9
ER Series Industrial Robot Three Dimension Visual Debugging Manual
10
ER Series Industrial Robot Three Dimension Visual Debugging Manual
value
Before use of vision, the robot needs to calibrate a user coordinate system,
which should be consistent with the visual coordinate system.
11
ER Series Industrial Robot Three Dimension Visual Debugging Manual
Send: [SetPointPos_1 (" P1 ", "1.1 _2. 2 _3. 3 _4. 4 _5. 5 _6. 6", 0, 2); the id
= 3]
Reception:
Success:
1, APOS: [id = 13; Ok; % 0.3 f, % 0.3 f, % 0.3 f, % 0.3 f, % 0.3 f, % 0.3 f]
(values are A1, A2, A3, A4, A5, A6)
12
ER Series Industrial Robot Three Dimension Visual Debugging Manual
Receive: success [id = 122; Ok; 1.1](last value) failure [id = 122; FAIL]
Send: [GetCurJPos () id = 1]
Receive succeed: [id = 1; Ok; % 0.3F % 0.3F % 0.3F % 0.3F % 0.3F % 0.3F],
the value is corresponding to (J1, J2, J3, J4, J5, J6)
Send [GetCurWPos () id = 2]
13
ER Series Industrial Robot Three Dimension Visual Debugging Manual
11- Virtual Digital Input (SimDI) 12- Virtual Digital Output (SimDout)
13- Virtual analog input (SimAin) 14- Virtual analog Output (SimAout)
IoValue: port value (analog value can be an integer, floating point, positive
or negative, and digital value can only be 0/1)
IOGetDout(int ioIndex)
IOGetDin(int ioIndex)
IOGetAout(int ioIndex)
Receive: [id = 7; Ok; 1.1] (last bit is port value) Failed [id =
7; FAIL]
14
ER Series Industrial Robot Three Dimension Visual Debugging Manual
IOGetAin(int ioIndex)
Receive: [id = 8; Ok; 1.1] (last bit is port value) Failed [id =
8; FAIL]
IOGetSimDout(int ioIndex)
IOGetSimDin(int ioIndex)
IOGetSimAout(int ioIndex)
Receive: [id = 7; Ok; 1.1] (last bit is port value) Failed [id =
7; FAIL]
IOGetSimAin(int ioIndex)
Receive: [id = 8; Ok; 1.1] (last bit is port value) Failed [id =
8; FAIL]
15
ER Series Industrial Robot Three Dimension Visual Debugging Manual
Command: getCurSysMode_IFace ()
Command: getRobotRunStatus_IFace ()
16
ER Series Industrial Robot Three Dimension Visual Debugging Manual
Command: resetErrorId_IFace ()
Command: getErrorId_IFace ()
Receive: Success[id = 15; Ok; 207](207 is error code here) Fail [id
= 15; FALL]
Command: startRun_IFace ()
Note: this is only valid for the teach pandent program, not for the 3d interface
motion command. Once the 3D interface instruction stops, the instruction needs
to be retransmitted. StartRun cannot be used to restore the suspended 3D
interface movement.
3.17Program stop
Command: stopRun_IFace ()
17
ER Series Industrial Robot Three Dimension Visual Debugging Manual
命令:loadUserPrjProg_IFace(std::string prjName,std::string
proName)
prjName:工程名
proName:程序文件名
发送:[loadUserPrjProg_IFace("estun","main"); id = 18]
Command: IsRobotMoving_IFace ()
Receive: success [id = 21; Ok; 0] (0-stop 1-moving) fail [id = 21;
FALL]
Command: IsProgramLoaded_IFace ()
[IsProgramLoaded_IFace(); id = 21]
Received: [id = 21; Ok] There is a project load failure [id = 21;
FALL] There is no project load
SetPc_IFace(int index)
SetMotServoStatus_IFace(int sts_value)
19
ER Series Industrial Robot Three Dimension Visual Debugging Manual
Command: GetMotServoStatus_IFace ()
Command: GetCoordType_IFace ()
Command: JogMotionStop_IFace ()
Command: getGoableSpeed_IFace ()
Receive: success [id = 29; Ok; 20] (current global speed is 20)
failure [id = 29; FALL]
[MoveToSelectPoint_IFace(1,"0_0_0_0","0_50"); id = 30]
21
ER Series Industrial Robot Three Dimension Visual Debugging Manual
Reception:
[MoveToSelectPointb_IFace(1,"0_0_0_0","0_50_100"); id = 31]
Reception:
Command: StopDestPosMotion_IFace ()
22
ER Series Industrial Robot Three Dimension Visual Debugging Manual
TeachSelectPoint_IFace("P10",2); id = 46]
Reception:
Send: [SetTool_IFace(1,"TOOL0");id=36]
Scope: scope
Send: [GetCurWPosV3 () id = 3]
Note: the values after Ok respectively represent the robot world coordinates mod
cf1 cf2 cf3 cf4 cf5 cf6 X Y Z A B C (refer to the robot manual for specific meanings),
separated by Spaces
Feedback: [Id = 3; Ok; 3.000 11.960 58.983 0.0000 19.056 183.000 0.0000
0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000], [Id = 3; Fail]
The values after Ok are A1, A2, A3, A4, A5, A6, A7, a8, a9, a10, a11, a12,
a13, a14, a15, a16
Feedback: [Id = 3; Ok; 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000
0.0000 1.000 1300.000-68.139-300.000 0.0000 0.0000 180.000 0.0000 0.0000
0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000
0.0000
The values after Ok respectively represent the robot world coordinates mod cf1
cf2 cf3 cf4 cf5 cf6 x Y Z A B C (refer to the robot manual for specific meanings),
separated by Spaces
5: Get String
26
ER Series Industrial Robot Three Dimension Visual Debugging Manual
Feedback: [Id = 3; Ok; 95.500 38.500 83.500 23.400 83.500 94.500], [Id = 3; Fail]
Feedback: [id = 1; Ok; 1.000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000
0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 ], [Id =
1; Fail]
Feedback: [id = 1; Ok; 1.000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000
0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000], [ID = 1; Fail]
UserCoord id x y z a b c
Description:
27
ER Series Industrial Robot Three Dimension Visual Debugging Manual
CFG value).5 - String type (string);6 - Array type;7-- CPOS type (including CFG
value);8 - Type of the Tool variable (payload is not included).9 -- UserCoord
variable type;10 - Tool variable type (payload)
[SetVarV3 (2,"RealTimeX","234.44",1);id=3]
Send: [SetVarV3 (3, "AP0", "13.000 _111. 960 _158. 983 _10. 0200 _191. 056
_18. 000", 3); id = 3]
Description:
Parameter
3:1_a2_A3_A4_A5_A6_A7_A8_A9_A10_A11_A12_A13_A14_A15_A16, the
maximum number of values is 16. The smaller parameter must be a floating point
number supplemented by 0 by default.
Send:
28
ER Series Industrial Robot Three Dimension Visual Debugging Manual
[SetVarV3 (4, "CP0", "1 _13. 000 _111. 960 _158. 983 _10. 0200 _191. 056 _18.
000", 3); id = 3]
Description:
Parameters as above
Send: [SetVarV3 (6, "BBB", "1.1 _2. 2 _3. 3 _4. 4 _5. 5, 1); id = 3]
Description:
Send: [SetVarV3 (7, "CP0", "1 _2_3_4_5_6_7_13. 000 _111. 960 _158. 983 _10.
0200 _191. 056 _18. 000", 3); id = 3]
Description:
29
ER Series Industrial Robot Three Dimension Visual Debugging Manual
Description:
Description:
30
ER Series Industrial Robot Three Dimension Visual Debugging Manual
11: Sets the TOOL variable (without the load parameter) to write files
Description:
13: Set the TOOL variable (with load parameters) and write files
Description:
31
ER Series Industrial Robot Three Dimension Visual Debugging Manual
Send: [MovePointV3 (1, "0.0 _0. 0 _0. 0 _0. 0 _90. 0 _0. 0", ""," 0 _100_100 "); id
= 3]
Feedback:
Description:
Parameter 3: CFG value, null if not "", used in coordinate system position.For
example, "mode_cf1_cf2_cf3_cf4_cf5_cf6", for example, "1_0_0_0_0_0_0".(If
SCARA exists in cf4 = 99, it represents the shortest rotation path of 4-axis)
Speed parameter: the product of the global speed percentage and the set
speed value.
32
ER Series Industrial Robot Three Dimension Visual Debugging Manual
Send: [MovePointV3 (2, "2100.0 _ 100.0 _1700. 0 _0. 0 _0. 0 _0. 0", ""," 10
_100_100 "); id = 3]
Feedback:
[id = 3; FAIL]
Send: [MovePointV3 (3, "2100.0 _100. 0 _1700. 0 _0. 0 _0. 0 _0. 0", ""," 10
_100_100 "); id = 3]
[id = 3; FAIL]
Send: [GetToolV3 () ID = 3]
Note: Ok is followed by the current tool variable TOOL0, and the tool variable
domain (1- global) tool is a system variable, can only be global variables
33
ER Series Industrial Robot Three Dimension Visual Debugging Manual
Send: [GetUserCoordV3 () ID = 3]
Execution process:
2: The robot performs the motion command, the robot moves until the end,
and sends [FeedMovFinish:XX](referring to the given position) or
[ActMovFinish:XX](referring to the actual position).
3.46 GetSoftLimits Gets the soft limit of the current robot's axis
Ok is followed by the negative soft limit of the joint and the positive
soft limit of the joint of the current axis in degrees.
3.47 SetSoftLimits obtains the axis soft limit of the current robot
Parameter 1: IostrValue: indicates the port value of each I/O.Note that the port
value must be a floating point number
Parameter 3: Iotype: indicates the IO type (14 for virtual Aout,13 for virtual Ain, 12
for virtual Dout,11 for virtual Din, 2 for actual Aout, and 1 for actual Dout)
Send:
[setMultiIOValue_Face (" 1.1 _2. 2 _3. 3 _4. 4 _5. 5 _6. 6 _7. 7 _8. 8 _9. 9 _10. 0
", 1,14,10); id = 11]
[id =11;Fail]
Parameter 2: Iotype: indicates the IO type (14 for virtual Aout,13 for virtual Ain, 12
for virtual Dout,11 for virtual Din, 2 for actual Aout,1 for actual Dout, and 0 for
actual Din)
35
ER Series Industrial Robot Three Dimension Visual Debugging Manual
Send:
Ack: 1, the successful [id = 12, Ok, 1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9, 10.0]
Command: Clear3dCmds ()
36
ER Series Industrial Robot Three Dimension Visual Debugging Manual
Camera IP: Indicates the IP address of the camera. The default connected
camera IP address is 192.168.6.230.After power-on, the robot controller connects
to the server at the IP address as a client.
Camera port: This property is the port number of the camera serving as the
server. The default port number is 5000.
3d visual debugging
When the external camera is connected to the robot, the robot needs to
send "" (hexadecimal 0x20, space character) to the server every 18 seconds
without sending data.
If the robot fails to send data, it will disconnect the current connection and
reconnect to the server.
37
ER Series Industrial Robot Three Dimension Visual Debugging Manual
2. Check the IP address and port number connected to the robot, change
the IP address of the local computer to the IP address connected to the
robot, start socketTestdlg. exe, set the working mode to TCP server, and
set the local port to the port set by the robot.
4. Then send the above various commands in scoketTest and receive the
corresponding responses.
38
ER Series Industrial Robot Three Dimension Visual Debugging Manual
39