Vai al contenuto

Sergio Bertana

Risposte nei forum create

Stai visualizzando 15 post - dal 2,506 a 2,520 (di 4,374 totali)
  • Autore
    Post
  • in risposta a: How to factory reset the SlimLine CPU module #38988
    Sergio Bertana
    Amministratore del forum

    About the RS485 communication with other module, the forum is full of examples, unfortunately they are in Italian but by using Google translator it’s quite easy to translate the topics in english. All the programs on this forum can be downloaded and it’s easy to understand them. They are all well documented and on the topic, it’s explained how they work.

    You don’t tell if the communication is made by a modbus protocol or if you want to develop your own protocol. A communication example with a energy meter can be found in this topic.

    in risposta a: How to factory reset the SlimLine CPU module #38987
    Sergio Bertana
    Amministratore del forum

    The problem is due the fact that you are connected to the target system by using the serial line COM0. The LogicLab is using a modbus RTU protocol over the serial line to communicate with the SlimLine CPU module. In your program you have configured the COM0 to be used with the ModbusMaster FB, so it has been detached from the operating system and now it’s impossible to communicate with it thru the COM0. There are many ways to solve the problem.

    First if your CPU module has more than one serial port you can use another port instead of the COM0 to connect to it the PC that runs the LogicLab program. You can use also the COM2 in RS485 half duplex.

    If your CPU module has only the COM0 you can connect to it by using the Ethernet (If the CPU module has it) or the USB cable (Using RNDIS driver). I remind that on both these cases the connection is a TCP/IP connection and you have to set the LogicLab to communicate with the Modbus TCP/IP protocol by defining the IP address of the CPU module (Default is 192.168.0.122 on Ethernet, 192.168.1.122 on RNDIS) on TCP port 502.

    It’s obvious to remind that the TCP/IP conection is the best way to connect to the CPU module, thru it you can have many concurrent connections, LogicLab connected on modbus, a Telnet connection on port 23, it’s possible to transfer file with the FTP protocol, it’s possible to browse web pages with the HTTP protocol.

    Anyway there is an emergency way to connect to the CPU module, by connecting the COM0 to a PC and using the Toolly program, it’s possible to activate on Tooly the CPU catch sequence. This sequence permits to capture the module during it’s power up (See the topic).

    in risposta a: Acquisizione da PLC di un misuratore di energia #38986
    Sergio Bertana
    Amministratore del forum

    Continuo nell’esercizio proponendo un programma più complesso che esegue la lettura di tutti e 10 i registri del misuratore di energia SDM120. Il programma come si vede dalla stampa è sviluppato in linguaggio ST.

    Questo programma può essere utilizzato come dimostrativo in tutte le comunicazioni modbus, infatti ho definito la struttura MODBUSCONFIG che permette di definire per ogni comando modbus il nodo, il codice comando e l’indirizzo del registro. Tutte le letture sono per comodità suddivise su 2 registri (4 bytes) e tramite un ROL viene sistemata la differenza di endianness tra i due sistemi.

    Ho definito anche la struttura SDM120REGISTERS che contiene tutti i registri del misuratore di energia. In questo modo un unica variabile contiene tutti i valori acquisiti.

    Per completezza viene gestita anche una connessione TCP/IP sulla porta 2000. Connettendosi sulla porta è possibile disabilitare il FB ModbusMaster ed inviare le stringhe modbus al misuratore di energia direttamente da una connessione Telnet (Esempio utilizzando Toolly). Questa opzione può essere comoda per configurare il misuratore, ponendolo in Test tramite Modbus è possibile configurarne alcune funzioni (Download programma).

    in risposta a: Gestione scheda I2C custom connessa come estensione #38985
    Sergio Bertana
    Amministratore del forum

    Visto che parliamo di Reader/Writer RFID aggiungo un link a questo topicquesto topic che trattano lo stesso argomento.

    in risposta a: Utilizzare tensione di alimentazione dal bus di espansione #38984
    Sergio Bertana
    Amministratore del forum

    Visto che parliamo di Reader/Writer RFID aggiungo un link a questo topicquesto topic che trattano lo stesso argomento.

    in risposta a: Utilizzare tensione di alimentazione dal bus di espansione #38983
    Sergio Bertana
    Amministratore del forum

    I moduli CPU SlimLine nelle versioni espandibili hanno il connettore transition a 10 poli per la connessione dei moduli di espansione su cui è disponibile una tensione di 5V per l’alimentazione dei moduli. Facendo riferimento al Manuale hardware CPU SlimLine LogicLab Compact OEM (Stralcio) vengono riportate le connessioni del bus di espansione.

    Come vedi ci sono due diverse uscite a 5V riferite alla stessa massa, naturalmente questa alimentazione è disegnata per alimentare moduli connessi vicini al modulo CPU. Non è consigliabile portare questa alimentazione a distanze superiori di quelle specificate nel bus (Max 2 metri).

    Ora venendo alla tua domanda, mi parli di una CPU compact Lite la quale non ha il connettore di espansione, quindi non puoi connetterti per prelevare i 5V. Naturalmente la tensione è presente sul circuito stampato e quindi volendo puoi saldare due fili e prelevarla ma tutto questo è inutile dire che fà decadere la garanzia sul prodotto.

    Ho visto comunque che il modulo SL025B (Manuale utente) può essere alimentato fino a 12V quindi ti consiglierei di alimentare sia il modulo CPU che il modulo SL025B con una alimentatore a 12Vdc.

    in risposta a: Wireless bridge between two buildings in a forest #38982
    Sergio Bertana
    Amministratore del forum

    Considering the obstruction I suggest to take all the possible improvements to make the connection between radiomodems more stable as possible. So the Yagi 3-elements antenna is suggested. Please also to consider to use the VHF169 instead of the DL due its more output power. All our SlimLine family products can manage the Modbus communication (They can act as a master or slave). So there is no problems to establish a communication between the Eaton and our SlimLine. Moreover also the communication between LogicLab programming environment and the SlimLine is using the Modbus protocol, so it’s also possible to program and debug the program over the radiomodem connection.The ERE Water Proof IP66/68 radiomodems (Datasheet) have the same DL series characteristics. The only advantage is that they are in mounted in a waterproof case. If you need that kind of case, you can use them. Please remind to the output power difference against the VHF169 serie.

    in risposta a: Wireless bridge between two buildings in a forest #38980
    Sergio Bertana
    Amministratore del forum

    Considering the obstruction made by the trees and specially the obstruction of the line of sight made by the terrain to have the maximum signal propagation we suggest to use the lowest frequency available.In our range of products, the two models that we can propose are which that operate on 169 MHz VHF frequency. You can refer to the D51x series at 169MHz that has an output power up to 500mW.

    in risposta a: Problema con funzione SysVarsnprintf #38978
    Sergio Bertana
    Amministratore del forum

    Posto la risposta ricevuta da Axel.

    L’immagine di processo viene attivata solo se il compilatore si accorge che si stà utilizzando una variabile che fa riferimento a un datablock con immagini di processo. Con i puntatori, non è possibile sapere compile-time a cosa si punta occorre quindi effettuare nel programma almeno un accesso alla variabile.

    Quindi la risposta avvalora la soluzione proposta è sufficente nel programma richiamare la variabile, questo permette al compilatore di “vederla” come referenziata e quindi provvede a gestirne l’immagine di processo.

    in risposta a: Utilizzo Shape in movimento senza lo stato della shape #38977
    Sergio Bertana
    Amministratore del forum

    Quindi mi sembra di capire che non puoi allocare registri contigui sul PLC. In questo caso nulla di più semplice, relazioni l’oggetto Shape in movimento a variabili LW del terminale anzichè ai registri diretti del PLC. Poi tramite l’oggetto Trasferimento ciclico trasferisci i registri del PLC sulle variabili LW del terminale.

    in risposta a: Some questions about Netlog III CPU module #38973
    Sergio Bertana
    Amministratore del forum

    The manual to which i refer to is one called IEC61131-3 programming Manual (English) (Included in the LogicLab programming package) you can download the last version of it from the NetlogIII web site page. On it last version (Code Mnl151c080) at page 136 you will find the SysI2CWrRd function.

    In the Functions and FBs for extension modules management chapter there are all the functions and FBs designed to manage the extension modules that can be attached to the bus (IE all the SlimLine I/O modules).

    One of the feature of the IEC61131 standard is the possibility to develop by your own the functions and FBs. So you can develop your own hardware module and supply the related FB to manage it. The FB can also be encrypted so your customer can use it but cannot see how it is written (See topic, topic).

    All the SlimLine I/O modules can manage encoders, one or more channel each module, and FB to read them is also available.

    in risposta a: Collegamento tramite radiomodem DL169 tra sistemi SlimLine #38971
    Sergio Bertana
    Amministratore del forum

    Dimenticavo… come indicato sul manuale del radiomodem “Accensione/spegnimento tramite DTR“.

    Avendo impostato sulla seriale il DTR auto, il segnale DTR si muove automaticamente durante la trasmissione dei dati (Questo serve nelle comunicazioni RS485 Haf-Duplex) in questo modo però viene comandata anche l’accensione e spegnimento del radiomodem. Devi impostare DTR On, e comunque verificare che il radiomodem sia effettivamente acceso.

    in risposta a: Collegamento tramite radiomodem DL169 tra sistemi SlimLine #38969
    Sergio Bertana
    Amministratore del forum

    Da quello che hai scritto sembra tutto a posto, se ho ben capito hai provato i due radiomodem in connessione RS232 e tra di loro comunicano. Di fatto i radiomodem vengono forniti di default già per comunicare tra loro in RS232.

    Hai realizzato un programma su di uno SlimLine dove immagino hai utilizzato il blocco funzione ModbusMaster e come dici collegando questo SlimLine con un altro con un cavo cross i due dialogano. Quindi se questo è vero vuol dire che il programma sullo SlimLine master è corretto. Non mi dici se sullo SlimLine slave utilizzi il modbus slave gestito dal sistema operativo o se hai realizzato un programma con un FB ModbusSlave.

    Ora il dubbio che mi viene è questo i radiomodem hanno come modo seriale di default 9600, n, 8 mentre lo SlimLine ha 115200, e, 8. Hai provveduto ad impostare il corretto baud rate ed eliminato la parità sullo SlimLine, visto che il radiomodem al massimo arriva a 38400 ?

    Per modificare i parametri seriali sullo SlimLine puoi accedere da pagina web, oppure utilizzare da programma il FB SetSerialMode, ma in questo caso sei obbligato ad utilizzare il FB ModbusSlave. Attenzione se modifichi il baudrate ricordati di adattare il valore di IFTime nel FB Modbus.

    in risposta a: Some questions about Netlog III CPU module #38968
    Sergio Bertana
    Amministratore del forum

    The Netlog III CPU module is sold as OEM module it’s the CPU module used on the Netlog III programmable controller. It has the same architecture and shares all the features you can find in the SlimLine LogicLab family products. This means that you can load and execute on it all the example programs available on this forum and developped for the SlimLine products. About your questions.

    1) Yes it has a real time clock and a power CAP is capable to power it without power supply for about 1 month. The operating system automatically manages the time zone and daylight saving. A FB for SNTP syncronization is also available (See topic).

    2) The operating system manages 4 different tasks Boot: Executed at the startup, Slow: Executed every 10 mS, Fast: Executed every 1 mS, Back: Executed on backgrond. The execution time of Slow and Fast tasks can be modified by program (See topic). You can add to every task all programs (Written in all 5 languages) you want.

    3) Yes sure, all libraries are documented in the IEC61131-3 programming Manual. On the forum you can find some example of connection with commercial I2C devices (See topic) and other equipments.

    4) No the C code is not available. I remind to you that the ST (Structured Text) language is similar to C and has pointer, data structures, bidimensional arrays, strings and many of statements like IF, FOR, CASE, WHILE tipicals of C language.

    5) If you are registered to the site you can see the price directly. If you are not registered near every part code there is an € sign, by clicking on it the site automatically will send to you by email an quotation.

    in risposta a: Misurare tensioni fino a 500V DC #38965
    Sergio Bertana
    Amministratore del forum

    Per collegare i moduli di espansione al modulo CPU serve un CBL074*000 per ogni modulo di espansione. Sull’ultimo modulo della serie sebbene possa essere utilizzato anche il CBL074*000 si può utilizzae ll CBL045*000 che a differenza dell’altro termina non lasciando connettori scoperti.

    L’esempio è estremamente semplice, un FB SysGetAnInp acquisisce il valore di tensione analogica, e poi utilizzando il blocco di comparazione attivi l’usciti se il valore acquisito supera il valore di confronto (Ecco lo screenshot).

Stai visualizzando 15 post - dal 2,506 a 2,520 (di 4,374 totali)