-
Posts
117 -
Joined
-
Last visited
-
Days Won
15
pascal last won the day on December 2
pascal had the most liked content!
About pascal
- Birthday 07/15/1969
Profile Information
-
Gender
Male
Recent Profile Visitors
8,680 profile views
pascal's Achievements
UniGuru (4/4)
12
Reputation
-
I can't send a simple email through my panel
pascal replied to Juandiaza's topic in UniLogic Software
I'm not 100% sure, but don't you need your username to be filled in ? it's not the "from tag" that's used to login into your account ! -
Maybe you need a foreachloop in a foreachloop. Ther parent foreach with all your structs and the inner foreach with your data table ? please be more clear about "data table couldn't be updated past row 3 or 4...." in your foreach with data table as "input", you only work with "current index" row of the data table
-
jan, maybe these can help you : yellow field -> api server and request combined green field = query parameter (be aware to have the correct spelling ! (key) pink field = ascii variable (value) response parameter is a little tricky, because you see the square brackets -> this means that you receive an array ! (but an array with only one value (or struct) you receive an array of 1 value..... so PLC'sstart at zero.... tag 0 = tag(ascii type), main array index = 0 and collection is level 0 = commands and is an array with index in array = 0 level 1 = code, no array no index tag 1 = tag (BOOLEAN or BIT type), main array index = 0 and collection is level 0 = commands and is an array with index in array = 0 level 1 = value, no array index I hope you understand it.....
-
Problem reading modbus sensors holding register.
pascal replied to wincio's topic in UniLogic Software
ok, have you tried to read into a buffer , instead of an array with 5 reals ? a buffer with length 20 What I also saw -> maybe try to change this into General.ON -> with powerhud, you can read from adress 2409.... what is it with 2089 -> you are sure 1. communication settings are correct 2. with rs485 you have the termination resistors of the end of the line set ? -
Problem reading modbus sensors holding register.
pascal replied to wincio's topic in UniLogic Software
let's try another software if you can instead of matlab I use the pc software Powerhud modbus tester tool from powerhud.com Try with your known values of register start and count to read the data.... I know modbus adressing is sometimes the pain in the XXX -> you have to add 1, or substract 1 of substract 30000, sometimes you don't know.... with powerhud, you really can test it with the values you have to program in unilogic (I don't speak matlab's and it seems that they use a rare system -> you ask 5 registers and they give you 10....)) -
Problem reading modbus sensors holding register.
pascal replied to wincio's topic in UniLogic Software
you want to read 5 reals, but in fact, the value's you want to read are int32, float, int32,float,float (wich are 20 bytes) maybe this is the mistake ? to avoid such problems, just make a buffer of 20 bytes in the help of unilogic : -
Problem reading modbus sensors holding register.
pascal replied to wincio's topic in UniLogic Software
If you read the manual, then you have to read 10 registers , but your matlab code specifies 5... you are trying to read data1, wich is an array of 5 reals -> 5x4bytes = 20 bytes maybe try to read data1 configured as a buffer with 10 bytes and see what this does. -
there are different ways of doing this..... 1. if you are over the 200 psi, then you can reset the action that you have declared 2. you can hide the button using a bit -> if psi <200 then set bit -> and use this bit as view the button (tag : visibility in properties window of button) 3. if you want to show always the button, then you copy the button and paste it on the same place but with no action underneath. Then according the psi you show button with action or button without action...
-
Tom, you can't make modifications when being online. You can see the system in real time, but for changing something, you must close online mode, make your modifications and then download the new program. This can be done on the fly, depending on what you have changed in your program. When no restart is needed, your machine will not stop๐๐๐
-
New to Unlogic's need help connection PC to PLC
pascal replied to sjump's topic in UniLogic Software
have you tried to connect your PC and your PLC to a "standard" switch, without management on the switch.... If you connect both with the switch of your IT department, maybe they block some ports on your network ? It's not because you can ping, you could talk to the PLC some ports have to be opened by your IT ? -
1st. to check if your broker is working, use postman -> a free tool to check rest api's and mqtt 2. check your broker connection in mqtt protocol settings in unilogic -> below an example of my broker connection - first setup your broker without user and password to test it 3. make a subscription like following example, use raw data as format, after you can implement json.... 4. make a ladder rung to subscribe to all topics like this
-
Connect UniStream remotely to download app does not work when should
pascal replied to greml1n's topic in UniLogic Software
if you can manage your router at the office, you have to check if your router is capable of connecting to a provider (like dyndns or noip). if so, your router can communicate with this service provider and telling him his given IP adress of your internetprovider -
I'm just using an rest api to know the position of the sun at the actual moment of my actual place... i'm using ipgeolocation.io with a free license (only 1K requests/day ) that gives me always the correct position of the sun (or moon) Of course i'm using a unilogic plc....
-
Tasanen, I've found something else what could be the problem.... you want to read MI320 of an V1210, you have to read from adres 320 (or 321...) and not 40321.... A V1210 is an enhanced vision PLC, so when you look into the help file, there you can find the correct adress ranges for communicating modbus
-
maybe a little late, but just for knowing : you send byte 0+1 = identifier (can be anything) (0x0 0x1) byte 2+3 = always 0x0 0x0 byte 4+5 = length of the rest of the telegram (0x0 0x6, means still 6 bytes to send) byte 6 = slave adres (0x0 means adres 255) (I know....it's modbus) byte 7 : function code (0x3 -> read holding register) byte 8 + 9 : adress of start of holding register to read (0x9d80 = adres 40320.... -> maybe this is the mistake ?) byte 10 + 11 : number of registers to read (0x0 0x1 -> means 1 register or 2 bytes) in your python program, you ask 3 registers starting from 40321 (see figure below) but when I see what you are sending, it's not what you asked...