Search the Community

Showing results for tags 'modbus'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News and Announcements
    • Welcome to the Unitronics User Forums
    • New!
    • VisiLogic: Major HMI Image Library, New 7" Samba!
    • New!!! ***** U90 Ladder*****
  • OPLCs and Application Software
    • Vision PLC series and VisiLogic
    • Jazz, M91 PLCs and U90Ladder
  • UniStream HMI + PLC and UniLogic
    • UniStream: Hardware
    • UniLogic Software
    • UniLogic UDFBs
  • Software Utilities
    • SD Card Suite
    • Remote Operator
    • Remote Access
    • DataXport and DataXls
    • UniDownloader
    • UniOPC
    • UniDDE
  • Utilities for .net and Visual Studio
    • Unitronics PCOM Protocol
    • COM Object ActiveX .dll
    • .NET driver
  • Project Design
    • ...I have a project...what hardware do I need?
  • User Application Stories
    • Just finished a great project?
  • Tips and Tricks
    • Best Programming Practices
    • Tips and Tricks
  • Job Board
    • Projects seeking Programmers
    • Programmers seeking Projects
  • General Discussion
    • We're Listening...
    • The Lounge

Calendars

  • Community Calendar

Blogs

  • Simon's Blog
  • Ash Neilson's Blog
  • Unitronics' Blog: PLCs, HMIs and more
  • Saragani's Blog
  • Joe Tauser's Blog
  • Unitronics en Español
  • Powered by AMPS
  • Alldrives UK's Blog
  • Unitronics, Howman Style
  • PLCNewbie's Blog
  • Telestar Automation Blog
  • Webinars Collection
  • Tim's Corner
  • Blog
  • TELESTAR (Italian)
  • i4 Automation
  • i4 Automation (UK)
  • Unistream UDFB's

Categories

  • From Headquarters: Sample Applications
    • From Headquarters: VisiLogic
    • From Unitronics: U90 Ladder applications
  • User-submitted Applications
    • From Users: VisiLogic applications
    • From Users: U90 Applications

Categories

  • Articles
    • Forum Integration
    • Frontpage
  • Pages
  • Miscellaneous
    • Databases
    • Templates
    • Media

Categories

  • New Features
  • Other

Found 60 results

  1. I would like to communicate with an instrument that is using Profibus port to read analog and digital values. Is it possible to use an an external protocol converter with the Unistream (RS485 or CAN) port to connect to Profibus Slave device ?
  2. We have an issue regarding the Modbus TCP/IP communication with a third party HMI(Weintek), the read only bits can be read but I can't seem to write data on the PLC, how can I match the address that unilogic uses to the Modbus Standard( 0x 1, 0x 2, 1X 1 and so on) does this address matches exactly to that standard, say, If we configure a Coil to address 1 read only does this translate to 0X 1?, and if a second coil is configured as address 2 read/write does this means 1X 1? or 1x 2?. As I stated before, Our master HMI can read the coils configured as read only, we can even read and write registers, but we haven't been able to write to the PLC.
  3. Hello, These days I'm having a problem using modbus to reading pressure data from TROX terminal unit. It is kinda simple idea - 7 slaves (TROX units) and V700 is master and gets all the data. But as I'm conneting modbus though all of them I get error that there is no connection between TROX units. Slaves ID are set properly, cable polarity have been checked too. Maybe there are some other problems that I don't know? Thank you kindly for answers.
  4. Hi, I'm having hard time displaying data on V700 PLC. After MODBUS config and reading holding registers HMI still shows 0. Do I need to write data to data table and only then display on HMI? Data has to be read from MIO 12-V I/O module. Network ID matches, start of vector links to hmi variable. What could be done or I did wrong? Thanks. I'm attaching vlp file here
  5. Hi, I'm having hard time displaying data that I get through MODBUS. Need to read from multiple slaves, but after download display still shows 0. Maybe do I need to write data to data table and then display on HMI? Or I can just display data vector? I'm really confused, thanks in advance for your help. P.S. Program attached below. Thermofisher.vlp
  6. Hey guys, I'm often needing to use advanced modbus features because ill need to have dynamically adddressed slave ID's, or changing registers etc, etc and i cant use the built in configuration to do so. Also - the Advanced modbus still require a good bit of logic to be built in order to achieve a good Tx and Rx. I built this UDFB to be used as a single operation which accepts 4 Function In parameters, and one Function out. Example Ladder Note how the function is called, Param 'D' must be reset immediately after the function call: Ladder Image Input A is a struct with 4 members (Note that only one Arr at a time will be filled with the result data, based on your input to parameter 'B') resultBits[0-50] resultInts[0-50] resultUInts[0-50] resultRaw[0-99] The results of your query are stored here, depending on what value you use for input 'B' 1 = result store in resultsBits 2= result stored in resultInts 3= result stored in resultUints 4= result stored in raw buffer( for parsing floating point values etc, etc) Input 'C' is your input parameters for the MB request - Don't worry about the Modbus request, and request descriptor - these are handled inside the function Input 'C' is a struct with the following members slaveId functionCode = Standard codes...holding register = 3, etc startReg = starting register in slave length = how many registers(Keep in mind length of buffers etc, you can always change this) Retries = how many times to retry read request Timeout = how long to wait for response(5000 = 5 seconds -- 3 retries at 5sec each would be 15 secs for a failed attempt) Input 'D' is the Enable bit for the function to run - make sure to reset this immediately after the function call.(See image above) Output 'A' is a number with the following values 1 = read successful 5 = timeout (timeout * retries) 255 = ladder Error Let me know if i made a glaring mistake, or if you have any improvements! I'm sure i didnt do this as effeciently as possible - but, it does work for my purposes. I may add some more error checking and things later. Let me know what you think! Thanks, Matt MBR.ulle
  7. Hi everyone! I´m using the four sockets in a Vision 130, and I need more! So, I tried to redifine a socket in run time according to some conditions, but I find out that once the socket was defined, I can´t redefine it. The socket is first initialized as TCP / Port 502 / Server. A Modbus IP configuration is attached to this socket, and running as Modbus IP Slave. Then, I close the socket... ...and redefine it as UDP The result is that the socket never loose the Modbus definition, and can´t connect via UDP. When the second socket definition is executed, the socket state goes from 20 to 34. If I insert a reset of the PLC before the second definition, all runs correctly. So, I think that the only way to "release" the socket definition is restarting the PLC. Is this right? Or (more likely) I am doing something wrong? Thank you very much!!
  8. Hi; Trying to connect to a Gardner Denver Airsmart Controller Comm Module. Serial Interface - RS232 works. Trying the MODBUS TCP UDP protocol on their ports 2000 and 2001 - no luck yet, we can ping the IP OK, just no connection for MODBUS Read Registers(3) Any one had experience with this unit? Dan
  9. Hi Guys, Just doing a addition on a project I have 12 x VSD danfoss drives working great over the last 12 months on Modbus TCP,/IP. Using control word and speed reference for control, the client has just installed a ABB drive a ACS550, taking the modbus drive count to 13, I can easily poll the drive and read the drive feed back like 102 (40102) etc, However I am having difficulty writing the control word as a Hex code of 04FF to (1) or 40001 to start the drive or the speed reference between 0-20,000 to (2) 40002 Does anyone have any ideas I have tried both 0 &1 as zero offsets but still can't seem to get the drive to receive the control or speed. All drive paramteters for ABB profile is set to Comm as per the documentation for fieldbus control setup over modbus Has anyone come across this issue with unistream writing to these drives and are there any tips or tricks I might have missed ? Thanks in advance Douglas
  10. Can someone explain the format that the IP address is displayed in the Modbus IP communications status bit and how I can display it as a usual IP address like: 192.168.1.201 Cheers
  11. Hello, I just got informed about an issue with the program I have made for a Samba SM35 regarding Modbus settings. I use a Com Init block directly after a power-up bit that initializes factory com settings. If I enter Information Mode and change the serial settings for RS485 there, everything is fine until a power loss. The settings are overwritten at power-up. Is there a way to prevent the settings from getting restored to Com init settings after a power-loss or unit shut down?
  12. We have a Unistream HMi which is connected to a remote Modbus Slave (Prosoft PLX31 Modbus Gateway) I need to read the bits from particular words which hold the status of sensors mapped to the Gateway tables. On the holding register entry page, it does not allow for just reading 1 bit of a word. Is there a work-around or some example of plc logic that will take that register and read the bits into a bit-array? Thank you,
  13. Hello, I'm using JAZZ JZ20-R31 as a master to comunicate via modbus. Is there possibility to use another master device on the same line which would read data from JAZZ? Requests from one master would be about a minute interval and around 15minutes from the other, so there would be little chance for interference. I know this isn't the right way to do this, but just curious... Is it possible to do this or is JAZZ somehow "locked" and unable to be read by someone while JAZZ itself is operating as a master? Thank you, Regards, Pawks
  14. Does anybody know if Vision controllers (ie V130) support Modbus TCP or do they support the Modbus RTU over TCP implementation. The difference is that the first follows the original Modbus TCP frames (ie no CRC) while the latter encapsulates the serial RTU framing sent over TCP media. Which one is supported by Vision and the other Unitronics controllers?
  15. Good evening ladies and gentlemen, I have 4- V430-J-TA24's, serial (RS232, 9600, 1, none) MODBUS, one as a master (MTU), and the other 3 as slaves (RTU). port 1 on each unit connects to it's respective radio modem. The MTU polls the 3 RTU's successfully and the cycle repeats. Here is my problem: how do I detect a comm failure on the slaves that will set a MB to clear my outputs and registers? The master reads a register from RTU1, here it can use the status message from the RHR #3 and use a compare if MI96 (rhr#3 status) = D#5 then ----[R] (MI100, the value displayed on MTU, fetched from RTU). Now on to RTU 3 and 4, they only have a MODBUS config FB follow by a SCAN_EX. How does the RTU know if updates cease? The registers and coils will just hold their last set values. My thought is having the master toggle a MB on/off in the slave, then somehow implementing logic in the slave to detect if MB being stuck in a 0 or 1 state for greater than a defined amount of time. this would trigger a bit that would zero out the coils in the slave. Please someone tell me there is an easier way. Also what is the reason that RS232 port 1 (RJ11) seems to be disabled while connected to a PC with the USB cable? Thanks!
  16. Hi everyone. I tried to use a MODBUS configuration using an indirect declaration of SLAVE ID, but didn't work. (see example in index 2 and 3 below) If I declare the SLAVE ID in a direct way, all OK. My problem is that I have to read several slaves from the PLC, and is realy hard to do with a fixed Modbus configuration. I am using a V130 in revision 9.6.0. Thanks in advance. Regards, Javier. P.D.: Sorry if I posted this twice. I couldn't find the first post.
  17. update: 12-10-16 I take that back, I failed after two weeks of trying every conceivable configuration to implement a complete working model of serial MODBUS with read holding register and write coils exchanges to four vision slaves over RS232 radio modems. Has anyone out here successfully setup a Unistream master to a Vision slave, serial, 232 over modems (RF), read registers (more than one) and write coils; without errors? For example sequentially reading five 16 bit integers and in next line of periodic slave table writing a 10 bit array of coils (or a single 16 bit write register)? 9600, 1, none, must do four RHR #3 and write coils (10 but array) to four slaves all in a cyclical (periodic) fashion. I can't make it work to save my life. I really need to know if anyone else has a working UniStream to Vision serial modbus system working as expected! Now IF you only do read holding registers or only write coils THEN it works fine. However when stacking different MODBUS operations into a single slave table in periodic mode one or the other function takes precendence over it's neighbor. I had the latest version of UniLogic and UniStream firmware as of December 1st 2016. Had to table the UniStream and go to a Vision 1210 to complete my project. However I desperately want to use the UniStream as an MTU/controller in my project.
  18. I notice that the Unitronics MODBUS communications function, "Read/Write Mixed Data", crashes the communications if I try to use it between a Vision controller and a UniStream controller. This is a VERY handy function and I'm wondering if there are any plans to make the UniStream compatible with this function.
  19. Hi everyone. I tried to use a MODBUS configuration using an indirect declaration of SLAVE ID, but didn't work. (You can see an example in index 2 and 3 of the attached image) If I declare the SLAVE ID in a direct way, all OK. My problem is that I have to read several slaves from the PLC, and is realy hard to do with a fixed Modbus confifuration. I'm using a V130 in version 9.6.0. Thanks in advance. Regards, Javier.
  20. Hello! I have a next project where I have to use module EX9024D. For this project I use Unitronics Samba (SM43-J-T20) with v100-17-rs4 module (because this combo is what I have right now). Operation manual for EX9024D: https://www.expertdaq.com/media/downloads/ex-9021_ex-9022_ex-9024.pdf Basically I have to send #023-02.500 command to module (page 20). This command will generate -2.5V to output 3 (total 4 outputs, 0-3). This task is little over my head, especially when it comes to using ModBUS, so I will need help. How do I transmit this kind of command over ModBUS (I believe I also have to transmit character #, not sure tho)? Could anybody please explain and guide me through this? I have also tried to watch provided example files, but this is still too confusing to me. Best regards, Steven
  21. Hi there, i'm not able to read 32bit float big-endian from Janitza UMG104. Connection is over COM1 in Modbus mode, periodic trigger activated by pushbutton and set slave-name (bit) to 1. This works fine for the Modbus TCP slave, which provide me system information. The powermeter i try to read, deliver me important informations which i later need to add together with sensor values to a data table. Reading fails at the point, the 32bit float comes in. I tried: Register addresses 19018 (current, A), 19026 (power, W) and 19034 (power, VA) with own Tags as REAL, with memory float array MF[MF_0] to MF[MF_2], reading the registers from normal table (1639) and with adding address value for little endian communication. Nothing works. Registers 19xxx provide most used values. The REAL goes to a REAL to INT converter, ouput is INT32. A try with GridVis and Janitza Modbus Diagnostic tool works fine, all 3 Register addresses with reading 4 bytes. When i take a look the the online state of the memory floats, i see flickering data. I will try the swap bytes extended, but i hope, you have generally an idea, what goes wrong and how i can fix this. Pictures follows later, when i'm back to work Enviroment: Janitza UMG104 (latest firmware), Unistream USP-156-B10 (latest firmware), Com1 38400/8/n/1 Modbus periodic, Modbus Slave ID 1. (yes, I'm new to PLC/HMI) BR
  22. Hi, I need to connect a USP-070-B10 Master(client) to 6 remote Modbus TCP I/O Slave (server) (http://www.moxa.com/doc/man/ioLogik_E1200_Series_QIG_v4.pdf). Do I need 6 different socket? May be socket in Unistream are unlimited!!!
  23. Hi, Would someone explain me how can I send correctly variables type REAL (MF`s) over Modbus-TCP? I am working with a PLC V1210 with Internet card V200-19-ET2, it talks to an Anybus X-gateway ( AB7629-F) which is Profibus-Master and Modbus Slave then the Anybus will send the data to a Nachi Robot CFD controller. I already set the comms between all devices and I can send/receive data to each other. My problem starts when I try to send the variable with decimal point (i.e 1.5) to the robot. But let me explain where I have got so far. Before send it to the robot I get the MF0 and copied to a DW0 variable with COPY MEMORY function with the following parameters: COPY MEMORY FUNCTION MF0 = A 0 = B DW0 = C 0 = D 4 = E When I store the value 1 to MF0 my DW0 displays the value 16256 and the Robot gets the same value 16256. However when I start to change the values into MF0 the robot starts receive different values. I have tried many things but I believe I have missed some information in terms how to convert these variables type. Obs: The robot program side gets block of 32 bits and then convert to a DINT variable and after that /100 and store the result into a variable type REAL with decimal point. If there is anyone who could give me a explanation how to deal with this problem would be great. Thanks for now and this is my first topic. I already set the comms between all devices and I can send/receive data to each other.
  24. Hi, I have a Vision V1210 Controller that is supposed to read float values from pH meter over RS485 MODBUS RTU. All the communication is fine, using "Read Float Registers" FB the float value is stored in two consecutive MI registers (MI0 and MI1). I can see that retrieved value is 32bit float ordered big-endian (I believe that's IEEE 754) and I was wondering if there is some way to display it on screen? One way would be converting it to some integer representation so I can easily put it in a numeric box and use 1.2 decimal format (pH values should be in range 5.00-9.00), but I haven't found any ladder element for such conversion. Am I missing something obvious? It's worth mentioning that I don't need to do any calculations on these floats, just display them on screen. Thanks -- Petar.
  25. Hi everyone I'm fairly new at unitronics and I'm doing a project that calls for the use of two EX-RC1 connected by modbus. I've been going through the webinars ( and ) and I'm still in the dark as to how I set upthe EX-RC's for my I/O expansions. In my first RC I have the following I/O's : #0: D16A3-RO16 #1:AO6X 2#: AO6X #3: AO6X #4:AI8 #5AI8 In the second RC I have four IO-PT400 modules I've tried following the second youtube clip, using the EX-RC1 example file where I've added my I/O's, but I get an error when I try to export the Hardware config: 'Export failed (555) You must define a minimum of one I/O, including its operand link, per module before you can export the configuration' Can somebody point me in the right direction here? Thanks