Indiaum
Member
Hi!
I'm trying to build a program to get, whenever a fault occurs, it's data and time. (In attach.)
In PLCSim it works fine, but when i try o run it in PLC, it does not work.
To help:
Falha = Fault
Data = Date
Hora = Time
Indice = Index
Quantidade = Quantity
Network 1
Get time and date from system
Network 2
Opens the instance DB
Network 3
Verifies if an input "Falha_XX" changed from "0" to "1" and transfer its relative number to an Interger(Falhas).
Network 4
Verify if the interger "Falhas" is greater than "0", which implies that a fault occured.
If yes, write this interger to a position in the array, and date and time in another array.
Reset interger "Falha".
Network 5
Verify limits, to avoid memory overflow.
Network 6
Just to search both arrays for an espcific position.
Sorry about my english, and hank you for your time.
I'm trying to build a program to get, whenever a fault occurs, it's data and time. (In attach.)
In PLCSim it works fine, but when i try o run it in PLC, it does not work.
To help:
Falha = Fault
Data = Date
Hora = Time
Indice = Index
Quantidade = Quantity
Network 1
Get time and date from system
Network 2
Opens the instance DB
Network 3
Verifies if an input "Falha_XX" changed from "0" to "1" and transfer its relative number to an Interger(Falhas).
Network 4
Verify if the interger "Falhas" is greater than "0", which implies that a fault occured.
If yes, write this interger to a position in the array, and date and time in another array.
Reset interger "Falha".
Network 5
Verify limits, to avoid memory overflow.
Network 6
Just to search both arrays for an espcific position.
Sorry about my english, and hank you for your time.