Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Error When Writing to SQL Table
Post: Error When Writing to SQL Table

Im getting an error "the machine refuses it" when running my script to write to a table from pylogix import PLC import sys sys.path.append('..') import time import pymysql with PLC() as comm: com...
skaailet General Coding Help 1 1,838 Jun-09-2020, 11:13 PM
    Thread: Write to SQL Table
Post: Write to SQL Table

How can I change my code to write to a SQL Table instead to a Excel File The code I use is this one from pylogix import PLC import sys sys.path.append('..') import time import pandas as pd plc_dat...
skaailet General Coding Help 1 1,601 Jun-09-2020, 05:43 PM
    Thread: Call a python file with anothr python file
Post: RE: Call a python file with anothr python file

It has no errores the problem is that when it finish the SE1_F2 (or any other) it closes all and i need that when the script finish, go back to the main script and validate the next IP
skaailet General Coding Help 3 2,315 Apr-30-2020, 03:04 PM
    Thread: Call a python file with anothr python file
Post: Call a python file with anothr python file

I have this code that pings a PLC to se if it is online if it is on it will start the PLC file that corresponds to the IP, it works but when the PLC fiel ends it closes all instead of going back to...
skaailet General Coding Help 3 2,315 Apr-30-2020, 02:32 PM
    Thread: Save output into a Excel Sheet with Format Table
Post: Save output into a Excel Sheet with Format Table

What can I add to my code in order to save the output into a excel shett but with format table this is the code (part of it, due to it is to long) with PLC() as comm: comm.IPAddress = '172.21.11....
skaailet General Coding Help 1 2,510 Apr-15-2020, 09:11 PM
    Thread: Add command to PushButton
Post: Add command to PushButton

I create a GUI usin PyQt5 Designer and i want to know how to make that the push buttons trigger a py. script? whats the command for that? i already convert from .ui to .py and this was the result scr...
skaailet GUI 1 1,713 Apr-11-2020, 01:13 AM
    Thread: Create a program that PING a list of IPs
Post: Create a program that PING a list of IPs

How can I create a script that Pings a List of IP and saves the output in other text file I have one code but it displays an error import subprocess with open('IP-list.txt','r') as f, open('ip_out...
skaailet General Coding Help 7 6,381 Mar-26-2020, 08:49 PM
    Thread: Create a program that PING a list of IPs
Post: RE: Create a program that PING a list of IPs

I saved it with NotePad++ using UTF-8 without BOM and still receiving the same error could you send me your text file thta you use in the program to try it
skaailet General Coding Help 7 6,381 Mar-24-2020, 10:46 PM
    Thread: Create a program that PING a list of IPs
Post: RE: Create a program that PING a list of IPs

I'm getting this error on run Traceback (most recent call last): File "C:/Users/edi_c/AppData/Local/Programs/Python/Python38-32/IPv3.py", line 7, in <module> print(response.stdout.decode(...
skaailet General Coding Help 7 6,381 Mar-24-2020, 08:22 PM
    Thread: Create a program that PING a list of IPs
Post: Create a program that PING a list of IPs

Could somebody help me creating a program that Ping a list of IP adresses and save thta result of that Pinf in a text file in order to have a historic record I made tis code but it is not working as...
skaailet General Coding Help 7 6,381 Mar-24-2020, 07:29 PM
    Thread: How to create a Log file
Post: How to create a Log file

Hi, im new in this coding thing and im creating a "program" that Ping some Ip's that I have on a list and I would like that when the program ends pinging, it saves the information/results in a eventlo...
skaailet General Coding Help 0 1,202 Mar-24-2020, 12:20 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020