发那科采集 #2

Open
opened 2024-08-06 01:52:45 +00:00 by ZhaoYouYa · 10 comments
ZhaoYouYa commented 2024-08-06 01:52:45 +00:00 (Migrated from codeberg.org)

协助厂商安装Linki2,还有一些机器网络一设置,但是端口无法pin通
dd83d277c927dcf6ad74f45f3b0536e

协助厂商安装Linki2,还有一些机器网络一设置,但是端口无法pin通 ![dd83d277c927dcf6ad74f45f3b0536e](/attachments/b1b5d4a7-f657-4ff6-97e3-c8d3f9a2956c)
ZhaoYouYa commented 2024-08-06 01:58:47 +00:00 (Migrated from codeberg.org)

额外的,发那科注塑机不开放ping端口。通过测试987端口连通性来测试网络是否联通

# Write-Host "ZS-A1 $((Test-NetConnection 10.172.20.5 -Port 987).TcpTestSucceeded?"`e[38;5;2mYes":"`e[38;5;1mNo")";
# Write-Host "ZS-B1 $((Test-NetConnection 10.172.20.15 -Port 987).TcpTestSucceeded?"`e[38;5;2mYes":"`e[38;5;1mNo")";
# Write-Host "ZS-B2 $((Test-NetConnection 10.172.20.16 -Port 987).TcpTestSucceeded?"`e[38;5;2mYes":"`e[38;5;1mNo")";
Write-Host "ZS-B3 $((Test-NetConnection 10.172.20.17 -Port 987).TcpTestSucceeded?"`e[38;5;2mYes":"`e[38;5;1mNo")";
# Write-Host "ZS-B4 $((Test-NetConnection 10.172.20.18 -Port 987).TcpTestSucceeded?"`e[38;5;2mYes":"`e[38;5;1mNo")";
# Write-Host "ZS-B5 $((Test-NetConnection 10.172.20.22 -Port 987).TcpTestSucceeded?"`e[38;5;2mYes":"`e[38;5;1mNo")";
Write-Host "ZS-B6 $((Test-NetConnection 10.172.20.23 -Port 987).TcpTestSucceeded?"`e[38;5;2mYes":"`e[38;5;1mNo")";
# Write-Host "ZS-B7 $((Test-NetConnection 10.172.20.24 -Port 987).TcpTestSucceeded?"`e[38;5;2mYes":"`e[38;5;1mNo")";
# Write-Host "ZS-B8 $((Test-NetConnection 10.172.20.25 -Port 987).TcpTestSucceeded?"`e[38;5;2mYes":"`e[38;5;1mNo")";
# Write-Host "ZS-B9 $((Test-NetConnection 10.172.20.26 -Port 987).TcpTestSucceeded?"`e[38;5;2mYes":"`e[38;5;1mNo")";
# Write-Host "ZS-B10 $((Test-NetConnection 10.172.20.27 -Port 987).TcpTestSucceeded?"`e[38;5;2mYes":"`e[38;5;1mNo")";
# Write-Host "ZS-B11 $((Test-NetConnection 10.172.20.28 -Port 987).TcpTestSucceeded?"`e[38;5;2mYes":"`e[38;5;1mNo")";
# Write-Host "ZS-A2 $((Test-NetConnection 10.172.20.29 -Port 987).TcpTestSucceeded?"`e[38;5;2mYes":"`e[38;5;1mNo")";
# Write-Host "ZS-A3 $((Test-NetConnection 10.172.20.30 -Port 987).TcpTestSucceeded?"`e[38;5;2mYes":"`e[38;5;1mNo")";
import socket
import colorama
import concurrent.futures
colorama.init()
# 定义要测试的 IP 地址和端口
ip_base_address = '10.172.20.'
ip_end_address_bind = [['5', 'A1'], ['15', 'B1'], ['16', 'B2'], ['17', 'B3'], ['18', 'B4'], ['22', 'B5'], [
    '23', 'B6'], ['24', 'B7'], ['25', 'B8'], ['26', 'B9'], ['27', 'B10'], ['28', 'B11'], ['29', 'A2'], ['30', 'A3']]
port = 987


def t(index):
    # 创建一个 socket 对象
    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    it = ip_end_address_bind[index]
    mac = 'ZS-' + it[1]

    # 尝试连接到指定的 IP 地址和端口
    try:
        s.connect((ip_base_address+it[0], port))
        print(colorama.Fore.GREEN + f'{mac}: True' + colorama.Fore.RESET)
    except Exception as e:
        print(e)
        print(colorama.Fore.RED + f'{mac}: False-IP:{ip_base_address+it[0]}' + colorama.Fore.RESET)
    finally:
        # 关闭 socket 对象
        s.close()

with concurrent.futures.ThreadPoolExecutor(max_workers=14) as executor:
        # 提交任务到线程池,并传入参数
        futures = [executor.submit(t, param) for param in range(14)]
        
        # 等待所有任务完成
        concurrent.futures.wait(futures)
额外的,发那科注塑机不开放ping端口。通过测试987端口连通性来测试网络是否联通 ```pwsh # Write-Host "ZS-A1 $((Test-NetConnection 10.172.20.5 -Port 987).TcpTestSucceeded?"`e[38;5;2mYes":"`e[38;5;1mNo")"; # Write-Host "ZS-B1 $((Test-NetConnection 10.172.20.15 -Port 987).TcpTestSucceeded?"`e[38;5;2mYes":"`e[38;5;1mNo")"; # Write-Host "ZS-B2 $((Test-NetConnection 10.172.20.16 -Port 987).TcpTestSucceeded?"`e[38;5;2mYes":"`e[38;5;1mNo")"; Write-Host "ZS-B3 $((Test-NetConnection 10.172.20.17 -Port 987).TcpTestSucceeded?"`e[38;5;2mYes":"`e[38;5;1mNo")"; # Write-Host "ZS-B4 $((Test-NetConnection 10.172.20.18 -Port 987).TcpTestSucceeded?"`e[38;5;2mYes":"`e[38;5;1mNo")"; # Write-Host "ZS-B5 $((Test-NetConnection 10.172.20.22 -Port 987).TcpTestSucceeded?"`e[38;5;2mYes":"`e[38;5;1mNo")"; Write-Host "ZS-B6 $((Test-NetConnection 10.172.20.23 -Port 987).TcpTestSucceeded?"`e[38;5;2mYes":"`e[38;5;1mNo")"; # Write-Host "ZS-B7 $((Test-NetConnection 10.172.20.24 -Port 987).TcpTestSucceeded?"`e[38;5;2mYes":"`e[38;5;1mNo")"; # Write-Host "ZS-B8 $((Test-NetConnection 10.172.20.25 -Port 987).TcpTestSucceeded?"`e[38;5;2mYes":"`e[38;5;1mNo")"; # Write-Host "ZS-B9 $((Test-NetConnection 10.172.20.26 -Port 987).TcpTestSucceeded?"`e[38;5;2mYes":"`e[38;5;1mNo")"; # Write-Host "ZS-B10 $((Test-NetConnection 10.172.20.27 -Port 987).TcpTestSucceeded?"`e[38;5;2mYes":"`e[38;5;1mNo")"; # Write-Host "ZS-B11 $((Test-NetConnection 10.172.20.28 -Port 987).TcpTestSucceeded?"`e[38;5;2mYes":"`e[38;5;1mNo")"; # Write-Host "ZS-A2 $((Test-NetConnection 10.172.20.29 -Port 987).TcpTestSucceeded?"`e[38;5;2mYes":"`e[38;5;1mNo")"; # Write-Host "ZS-A3 $((Test-NetConnection 10.172.20.30 -Port 987).TcpTestSucceeded?"`e[38;5;2mYes":"`e[38;5;1mNo")"; ``` ```python import socket import colorama import concurrent.futures colorama.init() # 定义要测试的 IP 地址和端口 ip_base_address = '10.172.20.' ip_end_address_bind = [['5', 'A1'], ['15', 'B1'], ['16', 'B2'], ['17', 'B3'], ['18', 'B4'], ['22', 'B5'], [ '23', 'B6'], ['24', 'B7'], ['25', 'B8'], ['26', 'B9'], ['27', 'B10'], ['28', 'B11'], ['29', 'A2'], ['30', 'A3']] port = 987 def t(index): # 创建一个 socket 对象 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) it = ip_end_address_bind[index] mac = 'ZS-' + it[1] # 尝试连接到指定的 IP 地址和端口 try: s.connect((ip_base_address+it[0], port)) print(colorama.Fore.GREEN + f'{mac}: True' + colorama.Fore.RESET) except Exception as e: print(e) print(colorama.Fore.RED + f'{mac}: False-IP:{ip_base_address+it[0]}' + colorama.Fore.RESET) finally: # 关闭 socket 对象 s.close() with concurrent.futures.ThreadPoolExecutor(max_workers=14) as executor: # 提交任务到线程池,并传入参数 futures = [executor.submit(t, param) for param in range(14)] # 等待所有任务完成 concurrent.futures.wait(futures) ```
ZhaoYouYa commented 2024-08-06 02:29:08 +00:00 (Migrated from codeberg.org)

现场设置网络的文档

现场设置网络的文档
ZhaoYouYa commented 2024-08-06 02:30:13 +00:00 (Migrated from codeberg.org)

EM63 参数地址对应表

EM63 参数地址对应表
ZhaoYouYa commented 2024-08-06 06:24:14 +00:00 (Migrated from codeberg.org)

ZS-B6

  1. 网络ip设置正确
  2. 上游网线检查正确

服务器无法联通此注塑机

ZS-B6 1. 网络ip设置正确 2. 上游网线检查正确 服务器无法联通此注塑机
ZhaoYouYa commented 2024-08-07 03:53:21 +00:00 (Migrated from codeberg.org)

账号 admin 密码 111。 ZS-B6 机台网络问题,当前未解决。下面是,Linki2 操作文档

账号 admin 密码 111。 ZS-B6 机台网络问题,当前未解决。下面是,Linki2 操作文档
Owner

已经检查了Linki2文档,并验证服务器的安装,使用标准em63,问题不大,当处理完网络问题之后,下一步进行开发。

已经检查了Linki2文档,并验证服务器的安装,使用标准em63,问题不大,当处理完网络问题之后,下一步进行开发。
zhaolei added the
后台开发已清晰
label 2024-08-07 10:13:44 +00:00
Owner

ZS-B6

  1. 网络ip设置正确
  2. 上游网线检查正确

服务器无法联通此注塑机

当前端口1 不通 端口2通,使用端口而需买网口的双向转换器。6698c99ba72533bf477eb6702f91688

> ZS-B6 > > 1. 网络ip设置正确 > 2. 上游网线检查正确 > > 服务器无法联通此注塑机 > 当前端口1 不通 端口2通,使用端口而需买网口的双向转换器。![6698c99ba72533bf477eb6702f91688](/attachments/9d3c0cc5-152e-403c-9a77-987cc31605dc)
Owner

所有网络全部顺畅

所有网络全部顺畅
Owner

em63 设置。现在已经配置完毕,可以写后台了。

em63 设置。现在已经配置完毕,可以写后台了。
zhaolei added the
配置已完成
label 2024-08-13 03:09:01 +00:00
zhaolei added this to the 注塑车间 milestone 2024-10-09 05:45:24 +00:00
Owner

.req 文件未被删除反馈

解决方法是: 1.把文件夹权限开放给所有人 2. 在网络中共享文件夹

.req 文件未被删除反馈 > 解决方法是: 1.把文件夹权限开放给所有人 2. 在网络中共享文件夹
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: zhaolei/FYCJ#2
No description provided.