-
Posts
418 -
Joined
-
Last visited
-
Days Won
20
Content Type
Profiles
Forums
Gallery
Events
Blogs
Downloads
Articles
Media Demo
Posts posted by Gabriel Franco
-
-
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 to read from PLC.
-
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)
-
The rung you show is disabled, then is not asigned preset to T0
-
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.
-
Right click on desired jump condition, then Clear jump option
-
3 hours ago, Ausman said:
Are you SURE you have the wiring correct for NPN or PNP and ALSO have the NPN/PNP selection done correctly in the Project's Hardware Configuration?
The PNP/NPN selection is in the left column of the Digital Inputs Tab in Hardware Configuration and is easily missed. Once done, you must compile this, save as new, reload it into the controller and do an Init and Reset.
I also notice in the photos that it looks like you are only using one input on the AI8. You could perhaps get rid of this module completely by using the AI on the D16A3.
cheers, Aus
I just realized that npn/pnp field exists. I never had to change it before. Is it really relevant or just to visual indication?
-
Note that initialize resets all memory to zero and if you have set some important values like PID parameters they will be all deleted.
I find it useful only in new projects downloaded to used PLC.
-
I don´t think it works for 400 Hz. Physical inputs requiere a minimum on-time to cath ON state.
I implemented your idea long time ago but my frequency was a bit lower.
-
It is not possible. You must contact the programmer to get a copy.
- 1
-
You must set the frequency (MI1) according with your actuator capabilities and the IO specs. https://myzone-kza3sadj.netdna-ssl.com/wp-content/uploads/2015/12/IO-D16A3-TO16_TECH-SPEC_03-09.pdf
-
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).
- 1
-
You may also try PID output limits: output low limit = -1000, output high limit = +1000, then scale PID output to your analog output.
-
No problem at all, either
-
I have mixed different protocols in different sockets without any problem
-
I use UDP instead of TCP set as protocol in a single socket init. With UDP there is not need of connect/disconnect everytime I change to the next slave query.
Query first slave, wait for its response, process data, wait a small time, query second slave and so on.
- 1
-
1. Yes, you can use 3 different sockets, port 502.
2. Try SLAVE ID=255 instead of 1
Don´t forget to Reset MB4 after reading holding registers.
-
As far as I know, it is only possible to make data table visible / invisible based on access level.
I would use two different data tables overlapping with visibility restrictions and Read-only box checked / unchecked
-
I suggest you get a MODBUS TCP function to achieve what you want
-
Go to HMI ... Font Handler menu.
Then select the font you want add special characters (defaul fonts cannot be modified) and select those required characters
- 1
-
Use PWM function, using PID output as input for PWM block.
-
Version 1.26.90 does not have such an option.
Would be nice to have it.
-
I would use surge protection devices, both sides: 110 V and 24 V; good isolation relays (with AC snubber or DC diodes)
-
Use any bit (MB or XB) you want, in parallel with SB2. Don't forget to Reset the bit.
This way, there is no need to restart PLC
.
-
5 hours ago, Flex727 said:
The unauthorized download access would need to know the PLC Name. Think of that like a password.
I think it only works for Vision family, not Unistream.
How to read a Timer column in a datatable
in Unitronics PCOM Protocol
Posted
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.