Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
zhmes-agecal
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
zhmes-agecal
Commits
ceef2411
Commit
ceef2411
authored
Nov 06, 2025
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 传送带 ip 调整
parent
451a8d10
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
Modbus4jUtils.java
...ain/java/com/zehong/system/modbus/util/Modbus4jUtils.java
+2
-2
RobotArmCommandServiceImpl.java
...ehong/system/service/impl/RobotArmCommandServiceImpl.java
+18
-0
No files found.
zhmes-agecal-system/src/main/java/com/zehong/system/modbus/util/Modbus4jUtils.java
View file @
ceef2411
...
...
@@ -180,7 +180,7 @@ public class Modbus4jUtils {
ModbusMaster
master
=
null
;
try
{
master
=
getMaster
(
"192.168.
2.11"
,
502
);
master
=
getMaster
(
"192.168.
1.11"
,
503
);
boolean
[]
booleans
=
readDiscreteInputs
(
master
,
1
,
0
,
2
);
if
(
master
!=
null
)
{
...
...
@@ -208,7 +208,7 @@ public class Modbus4jUtils {
public
static
boolean
[]
getRoboticArmExitConveyorData
()
{
ModbusMaster
master
=
null
;
try
{
master
=
getMaster
(
"192.168.
2.12"
,
502
);
master
=
getMaster
(
"192.168.
1.12"
,
503
);
boolean
[]
booleans
=
readDiscreteInputs
(
master
,
1
,
0
,
2
);
if
(
master
!=
null
)
{
...
...
zhmes-agecal-system/src/main/java/com/zehong/system/service/impl/RobotArmCommandServiceImpl.java
View file @
ceef2411
...
...
@@ -180,6 +180,24 @@ public class RobotArmCommandServiceImpl implements IRobotArmCommandService
address
,
"HOME"
);
List
<
RobotArmCommand
>
robotArmCommands
=
robotArmCommandMapper
.
selectTopRunningRobotArmCommands
();
if
(
robotArmCommands
.
size
()
>
0
)
{
robotArmCommands
.
forEach
(
command
->
{
command
.
setStatus
(
"4"
);
command
.
setEndExecutionTime
(
new
Date
());
robotArmCommandMapper
.
updateRobotArmCommand
(
command
);
});
for
(
RobotArmCommand
robotArmCommand
:
robotArmCommands
)
{
String
trayCode
=
robotArmCommand
.
getTrayCode
();
String
storeyCode
=
robotArmCommand
.
getStoreyCode
();
}
}
}
@Override
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment