-
Content Count
217 -
Joined
-
Last visited
-
Days Won
8
Gabriel Franco last won the day on August 28 2020
Gabriel Franco had the most liked content!
Community Reputation
19 GoodAbout Gabriel Franco
-
Rank
UniGuru
Profile Information
-
Gender
Not Telling
Recent Profile Visitors
5,632 profile views
-
How to read a Timer column in a datatable
Gabriel Franco replied to Jerther_'s topic in Unitronics PCOM Protocol
CopyMemory reads 4 consecutive addesses (long type). Column defined as Timer needs 4 bytes (integer type). I don´t remember the reason I read 4 long registers to read timers, but it works. -
How to read a Timer column in a datatable
Gabriel Franco replied to Jerther_'s topic in Unitronics PCOM Protocol
I´ve read timers from datatables using VBA in Excel using this code: Call CopyMemory(resultLong, DB(lAddress * ElementSize + 23), 4) resultSingle = resultLong / (24 * 60) resultSingle = resultSingle / (60 * 100) Workbooks(NombreArchivoDatos).Sheets("Referencias").Cells(lAddress + lRowReadIndex + 2, 4) = resultSingle Workbooks(NombreArchivoDatos).Sheets("Referencias").Cells(lAddress + lRowReadIndex + 2, 4).NumberFormat = "[hh]:mm:ss.00" lAddress and ElementSize depends of RAM address of specific datatable you want -
If you use CopyMemory function to get data directly from PLC memory address, then use PtrSafe in declaration of module: Private Declare PtrSafe Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)
-
Version 1.28.34 does not change date modified. I also expect that any file just opened without any modification saved, is not changed its modified date.
-
V1210 Expansion Error
Gabriel Franco replied to Colodeti's topic in Vision & Samba PLC + HMI Controllers & VisiLogic Software
I just realized that npn/pnp field exists. I never had to change it before. Is it really relevant or just to visual indication? -
Analog Inputs
Gabriel Franco replied to GioSerrano's topic in Vision & Samba PLC + HMI Controllers & VisiLogic Software
48 analog inputs per EX-A2X or EX-RC1, 6 IO-AI8. It is because data bus capacity, not PLC memory, if I remember well (from support answer I got time ago). -
You may also try PID output limits: output low limit = -1000, output high limit = +1000, then scale PID output to your analog output.