Jump to content

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

  • Our Community
    • Come on in!
  • News and Announcements
    • New! UniLogic V1.21 - Supports UniStream 5"
    • VisiLogic:9.8.64 - Link to mobile app, Ladder: 2x the Space!
    • New!!! ***** U90 Ladder*****
  • UniStream HMI + PLC Programmable Controllers & UniLogic Software
    • UniStream: Hardware
    • UniLogic Software
    • UniLogic UDFBs
  • Vision, Samba, Jazz and M90 PLC + HMIs & Software
    • Vision & Samba PLC + HMI Controllers & VisiLogic Software
    • Jazz, M91 PLCs and U90Ladder
  • 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
  • News and Announcements Copy

Calendars

  • Community Calendar

Blogs

  • Unitronics' Blog: PLCs, HMIs and more
  • Saragani's Blog
  • Simon's Blog
  • Ash Neilson'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 73 results

  1. UniStream advanced Modbus commands

    Where can I find out what the advanced Modbus commands do? Help does not have anything as well as the online help.
  2. Hello, I'm have some problems with the conversion of two integers to a floating point value. I have a modbus energy meter (SDM120) who works with 32bit IEEE745 floats values. In visilogic I receive two 16bit integers (MI); MI0 : 15643 MI1: -23069 I converted these integers to bits by the 'num to bit' function block. These are the converted value's : MI0 : 15643 --> 0011 1101 0001 1011 MI1: -23069 --> 1010 0101 1110 0011 If I put the two value's behind eachother I get the following binary code: 0011 1101 0001 1011 1010 0101 1110 0011 (MI0,MI1) When I fill in these binary code on a online binary to IEEE745 converter I get the following result: 0,038 This matches with the amps showing on the energy meter's display. The question is; How can can I make from MI0(15643) and MI1(-23069) a float in Visilogic So, MI0(15643) and MI1(-23069) -------------- some kind of formula -----------> MF0 = 0,038 Annyone who can help? Best regards, Jelmer
  3. Hello, I'm trying to figure out how to make a watchdog function in a Samba SM35-TA22- The customer will use TCP/IP to mostly read values from the PLC. If the communication goes down, the unit should stop. But I have no idea how to make this. I was looking at SB147 which is Socket 0 connected but it is constantly changing when I disrupt the connection, I guess it is due to auto connect. Is it the best option to use SB147 with perhaps a timer so if it is on for 10 seconds, that means the communication is up and the unit can run, but if sb147 change, the timer reset and the unit is stopped. I just want some feedback if I'm all wrong here. Thanks! //Peter
  4. Reuse Socket

    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!!
  5. We have an RS485 based communications issue We are using a Unitronics V430-J-RH6-N to communicate to a network of up to 4 slaves, consisting of Ziehl-Abegg Modbus modules. The ZA module wiring requires that, in addition to the data lines, the ground connections also be daisy chained together. This is what I am used to. The Unitronics communications connector does not specify a ground connection on the 6 pin RS12 connector provided. They only mention using pins 1 and 6 for Data A and B. 1. Where at the PLC do I terminate the ground for the RS485 circuit? Currently we have it tied to chassis. 2. Is there a possibility that tying the V0 ground at the PLC to Chassis, as suggested in the Unitronics documentation, could be causing us issues? The ZA socuentation specifically mentions NOT to connect the shield on the cable.
  6. Modbus word to bit array

    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,
  7. Modbus timer R/W

    Hello, is there a posibillity for reading and writing a timer value (not only MB or MI)? I am using unistream 10 as a master and v700 as a slave.
  8. Real word Byte Order

    Does any one know what is the native Byte order of Unilogic when a Modbus Double Register is mapped from a Remote Slave;
  9. Hi, I have Unistream 10 as a master and multiple slaves (8) over Modbus RS485. What device do I need to connect all the slaves into one master?
  10. Hello, For a project im working on I need to motitor serval energy sources and control multiple relays. I would like to use the Samba 4.3" PLC for giving a nice interface to the system. The problem is that I have over 30 outpust I need to control. I've found a modbus RTU (RS485) energy meter who measures the voltage and current. Also found a modbus RTU (RS485) digital output module with 16 outputs. Is it possible to use the Samba 4.3" PLC with V100-17-RS4 module to communicate over modbus with the IO modules and energy meters? Best Regards, Jelmer
  11. Hi. I have a Unitronics JZ20-R16 (Jazz2) controller I’ve programmed to run a simple air ventilation system in my house (The thing is running great btw.). I also have a self made Arduino based data logger (I use it to monitor and log my energy consumption, temperature, etc.) I’m not building those things or mass producing, Arduino electronics is my hobby - I just use it to stay sharp. So I decided to cross-integrate my air vent. Controller with my data logging unit (I want to see the status of my air vent. Controller unit on Arduino). So for starters the task is to simply send a 16bit int to Arduino and receive another 16bit int from the Arduino. The communication protocol of the choice was MODBUS through RS232 interface (as I already have MJ20-PRG; MJ20-CB200 and a MJ10-22-CS10). I’ve decided to use JZ20-R16 as a Master (Arduino as a Slave) in a 9600 baud 8N1 configuration (default for JZ20-R16). For Arduino’s RS232 interface I’ve used TTL-RS232 converter (MAX3232 based) : Experiment 1: In order to see if the Arduino’s MODBUS feature is working I’ve connected Arduino to my PC using the given connector and a RS232-USB converter. Arduino was configured as a slave and ModbusPoll software (http://www.modbustools.com/modbus_poll.html) simulated a master. I was able to both read a holding register from Arduino (03) and also write a register (06). Those are the desired options. Experiment 2: In order to see how MODBUS is working on JZ20-R16 I’ve hooked it up to my PC using my MJ20-PRG; MJ20-CB200 and a MJ10-22-CS10 later connected to RS232-USB converter. I’ve uploaded a program (by pressing buttons 1 and 4 I send an int or correspondingly request an int from slave): (see in uploaded files) It make the JZ20-R16 work as a Modbus master on a RS232 interface. In order to simulate a slave I’ve used ModbusSlave software (http://www.modbustools.com/modbus_slave.html) . Once again, the combination worked perfectly. Once again all the required commands worked. Here’s the photo of my hookup: Then I’ve noticed a possible cause for future problems : lines 4 and 7 of my MJ10-22-CS10 are actually used in this communication. It turned out that the RS232 communication with JZ20-R16 require 6 wire communication instead of 3 wire communication I’ve expected from RS232 interface. Due to the requirement of RTS and DTR signals! I’ve turned on my scope and actually saw those signals on pins 4 and 7 of MJ10-22-CS10 connector going high after the “handshaking” with my slave simulator was done. With PC USB disconnected: PC USB Connected: MudbusSlave after “handshaking”: Successful communication: CH3/4 are the DTR and DTS signals correspondingly. At this point I’ve realizes that sue to those signals I would not be able to connect my Unitronics to my Arduino, as the TTL-RS232 connector simply do not support DTR and DTS signals. So after hooking up my Arduino to Unitronics I see the following on the scope: Both DTR and DTS signals are on 0 instead of HIGH, which prevents the JZ20-R16 from accessing the modbus. The questions: Is there any chance to make JZ20-R16 communicate over RS232 without use of DTR/DTS signals? Is there an option to tweak those signals (connecting them to +5V permanently) Use of other TTL-RS232 converter? Any other way to make Arduino and JZ20-R16 communicate over RS232 interface using MODBUS Thank you for the patience. samplemodbusmaster232.U90
  12. Hi, I'm running an Arduino-based home automation system. My custom-made Arduino clones are communicating over a RS485 network (configured as 8N1) using Modbus RTU protocol. Thing is that I want to have a reliable, industrial-grade PLC in the network, in order to monitor my Arduino-based sub modules. Basically I need a cost efficient Unitronics PLC capable of connecting to RS485 network, The ladder program is expected to be non memory hungry, also I'm fine with good old 2 line display. The PLC must be able to connect to the RS485 network without the use of any extension modules/communication modules /.etc (native COM port on a screw terminal). Any suggestions? Thank You.
  13. Hi. Hope someone can assist. Installed 8 v570 units at client. First tried ethernet, then canbus and then modbus. No luck. Sometimes plc loose comms with other plc's and sometimes some plc's loose comms with omron cx supervisor scada. Any assistance will be appreciated. Thanks. Rodger
  14. Hi All! I am new to actual PLC programming and ladder logic but I have been working with Yaskawa drives for 11 years and am quite proficient on that end. I have a V1210 and have found it fairly easy to work with aside from visilogic crashing quite often on windows 10. I really want to start interfacing VFD's via modbus rs485 and I am looking for a place to start. Are their any example programs or tutorials specific to the V1000 that could help me get a start? I did see another topic similar to this, but the links the support staff listed were broken. Thanks in advance! Kyle
  15. Unistream Modbus limitation

    Hello Guys, I have trying a communication with a Unistream as a Slave and I'm having some problems. When I create a program on Unistream with 255 tags, the communication works ok and all address is read but when I add 1 more tag the program don’t work well. The master only can read about 175 address. In this case it does not matter the specific address, but the number of tags in the program. Does Unistream has a limitation on number of adress that can be read? Has anyone already had the same problem?
  16. 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 ?
  17. 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.
  18. 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.
  19. 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
  20. 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
  21. 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
  22. 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
  23. Modbus Write to ABB ACS550

    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
  24. 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
  25. 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?
×