Bryll

MrPLC Member
  • Content count

    349
  • Joined

  • Last visited

Everything posted by Bryll

  1. Event ID 16# 494D STOP due to IO error

    Did it solve your problem with the CPU stopping ?
  2. Event ID 16# 494D STOP due to IO error

    You might need OB82 (I/O Fault) and OB86 (Rack Fault) beside OB122 to solve your issue.
  3. Scale an integer value

    I uploaded a function to scale an analog value in integer format in the download section. It can be used instead of the standard Siemens "Scale" function, but it will give you the possibility to select the range of the input signal.
  4. Scale an integer value

    Sorry for late response, but yes it should work. I made the same function for Mitsubishi and I use it in almost every program I write
  5. Range_Fnc

    Version

    283 downloads

    I sometimes need to scale an analog value, so I had to do a function to better suit my needs than Siemes "Scale" function. It has 5 inputs, all in integer format. _In - The value to be scaled _In_Min - Lowest value of the "_In" signal. _In_Max - Highest value of the "_In" signal. _Out_Min - Lowest allowed value of the scaled output. _Out_Max - Highest allowed value of the scaled output. The output "_Out" is the calculated value in integer format. Edit. It's saved as a global library. TIA Portal V13 SP1 Upd. 4
  6. PLC Law

    Program complexity grows until it exceeds the capability of the programmer to maintain it. I used to swear like a sailor when using TIA Portal V11 and V12. With V13 is it only like a soldier. Never comment a program. If it was hard to write, it should be hard to read.
  7. Software for Siemens s7-1200

    I think you need a version of the Siemens TIA Portal to program a S7-1200. Version 13 is far much better than the previous ones.
  8. PLC Law

    Sorry, it should be "Siemens TIA Portal" . No other software will make me to swear like a soldier
  9. E1101 Ethernet problem - Help please.

    Have you activated the "Remote Access" function under "Network Connection -> Network Services" in the Project Manager tree ? VNC Viewer use port 5900, A web browser use port 5800.
  10. S7 Schedule program block (HVAC)

    I have a problem creating links to PDF's, so I attach them instead. This is what I've found regarding Siemens and HVAC e20001-a140-p200-x-7600.pdf e20001-a170-p200-x-7600.pdf
  11. 2 HMI's 1 plc.

    Dear Inntele, Sorry if I was a bit unclear, but I tried to visualize what you recommended earlier with a picture (first picture). The second picture was to make Ron_S aware of the reduced speed when the connection of the first picture is used The communication speed might be sufficient even at 50%, but I agree with kaare_t that it's better to use an Ethernet connection. It will work whatever Ron_S decides to use. Sorry if this reply is a bit late, but I have been on a nice vacation.
  12. 2 HMI's 1 plc.

    Some info from the E-Designer manual regarding serial communication. Snapshot_1.bmp Snapshot_2.bmp
  13. Newbie questions

    Welcome to the world of German logic. You sometimes need to think backwards to come forward.......
  14. The manual states that the default mode is DPV0 unless you select the DPV1 mode.
  15. Simoreg DC Master Drive status word question

    I might be wrong here, but I think that the "r" in r653 stands for "read only". If 653 is the parameter number that is. The status word is read only, don't you mean the control word (CW) ?
  16. Some library FNC/FB names might differ between GX IEC and GX Works
  17. FX3G turning on specified bits

    I had the same problem when stepping down from FX3U to FX3G. Don't know if it's the best way, but it works for me. Move D20 to 16 M-positions, MOV_M (D20, K4M0) turn on the bit M5 Move the M-positions back to your register, MOV_M (K4M0, D20) D20.5 is now on
  18. Was a bit disappointed yesterday when I started to write the code for a FX3G CPU. Tried to make a tiny system a bit cheaper for one of my best customers, so I bought a FX3G instead of the FX3U I use as a standard in his systems. I noticed very soon that some of the instructions used in a structured text formula wasn't implemented in the 3G CPU. So instead of a nice short formula to calculate the evaporation and condensation temperature of NH3 from its pressure, was I forced to write a big memory consuming "look-up" table. Is there a list of what instructions FX3G doesn't have, but FX3U does have ? Searched for a while yesterday, but couldn't find any clear answers. Guess I have to be surprised again when writing the code
  19. Instruction difference FX3G vs FX3U

    Got surprised again I'm reading information from a frequency drive and store the status word in D200, that's not a problem. But when trying to pick out the different status bits, like the running feedback status in D200.2 as a Boolean bit. The compiler refuses to accept it. There's no problem to move D200 to a range of M positions, but it seems to me that the FX3G was not the best choice of CPU. Or could this be changed by some setting for the compiler ? Let's see what next surprise will be
  20. A Static variable will retain its value / status between execution of the FB The Local variable will not retain its value. The Static variable will end up in the instance DB connected to the FB.
  21. 64 bit values in a FX3U

    Need to read a couple of values from a ABB B24 energy meter via Modbus RTU. Some of the values occupies 4 registers (4 x 16 bits). Anyone with a good suggestion how to present this on the HMI before I start testing myself ? Working with GX IEC Dev. The HMI is a E1101
  22. 64 bit values in a FX3U

    What the energy meter will return as an example, is a reply for accumulated kWh with the size of 4 registers (signed) with the resolution of 0.01kWh. I could discard the two highest registers, but when the unit has been in operation long enough will I need the two upper registers to present a correct value. That will give me 21 474 836,47 kWh as the maximum value if I only use two registers. It might be enough for the first ten years of operation, so I'll go for it
  23. If you create a FB and connects a DB to it, then you will have an instance DB. If you create a DB to store variables in, then you will have a DB with addresses for each tag/byte/word. You access them in your program by dragging them to the position or write the address directly like: DB100.DBX0.5 If you create an UDT, then you can access them by the label or drag and drop (no addresses). Might be wrong, since I'm just a beginner myself
  24. All CPU led falshing

    You must have a memory card inserted in the cpu. The Siemens memory card format is different from an ordinary memory card. Do not use anything else than a Siemens card, you might destroy things then.
  25. All CPU led falshing

    Did you insert a memory card in the cpu ? If you did, was it a new one ? It must be a Siemens Card