AndreasW

MrPLC Member
  • Content count

    22
  • Joined

  • Last visited

Community Reputation

5 Neutral

1 Follower

About AndreasW

  • Rank
    Sparky

Profile Information

  • Country Germany
  1. Using HOURM as Retentive Counter

    Hello Levent, this should work, but make sure that you reserve space for two 16bit devices, as d1 and also d1+1 are used, as described in the processing details on page 793 of the FX5 Programming manual (https://dl.mitsubishielectric.com/dl/fa/document/manual/plcf/jy997d55801/jy997d55801r.pdf) you should have a look at the declaration of the label 'Betriebsstundenzaehler', either assign a latched 16bit device (if declraed als global label) or set it to be an array of 2 elements if specified as a local label. In the second case you should use 'Betriebsstunndenzaehler[0]' for d1. Also you should be sure to handle the case, that the maximum 16bit value is reached witch will happen after about 7.5 years (65535/ (360days x 24h)), this is the reason we normaly don't use the 'hour_m' function and implement the operating hour counter by ourselve using an unsigned double word (32bit).   hope this helps
  2. Wireless programming fx3g

    Hi, like Crossbow wrote the most cheap devices require a driver to operate and won't work with a plc. If you want to provide a Bluetooth or WLAN interface for a machine, this could possibly be the suitable system https://www.anybus.com/de/produkte/wireless-loesungen/wireless-bolt https://www.anybus.com/de/produkte/wireless-loesungen/wireless-bolt/detail/anybus-wireless-bolt---ethernet-rj45-poe  
  3. GT2103 Buttons to increase/decrease a value

    Hi PeteW1959, inside the the button properties you can use a Range-Trigger to monitor your word device. This will enable or disable the button, and the button can't be pushed if the trigger condition is not set. To gray out the button visually you have to set the checkbox for 'show button in non operating state' in the extended property tab. Then you can change the appearance of the button for the 'non operating state', just assign an grayed button image inside the style tab. beside this you also can use the switch (button) to increment/decrement the word device without using the plc-ladder, use the 'Word'-Action inside the button properties. In this case you also can limit the range inside the action property window.  
  4. Hi marcoqf73, I don't know the OpenPCS software, but in IEC61131-3 there is a difference between a Function (FC) and a Function block (FB) Function (FC) is PLC code excluding static data, meaning that all local variables lose their value when the function is ended. The variables are initialized again the next time the function is ‘called’. The function typically carries out a mathematical calculation and returns the finally calculated value. Functions block (FB) is PLC code including static data. The local variables retain their values between each ‘call’ to the function. For Siemens PLC there will be one 'instance db' for every called function block that stores the local variables. I think you have to put your code in an Function block (FB) instead of a Function (FC), because otherwise the compiler won't allocate memory to store the local variable (MY_TON) between two calls    
  5. Security Level Keypad Not Popping Up

    Hi DWIM, know this problem, that the user credential dialog doesn't show up if the security level is set for an input field or button. for this we use a little key icon next to the input field/button that is only visible if the security level isn't sufficient, so that the user knows that he needs to sign in. For this login/logoff you can create a button using the special function (user authentication level) to show the user credential dialog. Unfortunately, I don't know how to display the login window automatically (as it is the case with a screen)  
  6. Mitsubishi fx5u SFRD instruction

    Hi mick, i think your problem is the shift that takes place after every read from the FIFO buffer, see section "processing details" for the SFRD instruction at page 352 from the "MELSEC iQ-F FX5 SeriesProgramming Manual[Instructions, Standard Functions/Function Block" manual https://www.atronika.com/Mitsubishi/PLC/MITSUBISHI_manual_plc_fx5_programming.pdf Maybe you can use the "POP" instruction instead, or you can read the data using an index-register ("Z")
  7. GOT2000 button enabled/disabled state

    hi _Pavel_, inside the the button properties you have to set the trigger device to enable the button, you can use a ON/OFF Trigger. This will enable or disable the button, and the button can't be pushed if the trigger condition is not set. To to gray out the button visually you have to set the checkbox for 'show button in non operating state' in the extended property tab. Then you can change the appearance of the button for the 'non operating state', just assign an grayed button image inside the style tab.  
  8. Interrupt Input Monitorin FX3U

    hi Areeb, your code should run on the rising edge of X4 and X5, check out if interrupt handling is enabled ( EI instruction  inside the normal scan program) and that the interrupt disable commands (M8050...M8055) are not set within the scan program. to see if the code get called you can temporarily add a line inside the interrupt program that increment a word register on each call If the interrupt get called the register should be counting up. e.g. for register D1 insert: ----| M8000 | ------------------------------ [INC D1] , be sure to use a free register that isn't used inside the program! also check out if/when M30 is set inside the scan program. the calculation only will be executed if M30 is set. You should use an extra 'calculated' flag to be sure that D60 got calculated. I don't see if the cutting is started inside the X4 interrupt, in this case be aware that X4 interrupt has higher priority than X5 interrupt. Just in case that both signals turn on at the same time. In this case X5 interrupt can be interrupted by X4 interrupt. maybe you should also check out the input filter time in the IO parameters, i think the default setting for X4 and X5 is 10ms, maybe this is too long for short input pulse    
  9. STL

    Hi JimZ82, for a list of STL commands you can have a look at the SIMATIC Statementlist (STL) function manual, but this is rather a command reference and does not contain any further general descriptions https://cache.industry.siemens.com/dl/files/814/109751814/att_933093/v1/STEP_7_-_Statement_List_for_S7-300_and_S7-400.pdf   i also can recommend the book 'Automating STEP7 in STL and SCL' from Hans Berger, on amazon you can have a little preview of this book ('llok inside' link) https://www.amazon.com/-/de/Automating-STEP-STL-SCL-Programmable/dp/3895784125/ref=sr_1_1?__mk_de_DE=%C3%85M%C3%85%C5%BD%C3%95%C3%91&crid=1RG6CYYFKJUS3&dchild=1&keywords=automating+with+step+7+in+stl+and+scl&qid=1595354421&sprefix=automating+with+%2Caps%2C236&sr=8-1      
  10. STL question

    hi fordmanck, look at the two last lines, seems you get a positioning error (SET OUT_PositioningError) after the timeout (T_OUT_PositionOn) occurs. I think this is either a timeout for detecting that the positioning has been started ("on") or that the target position has been reached. You should search the program for the timer "T_OUT_Position_On" to check out which circumstances cause the timer to be set.  
  11. communication FX5U - FANUC

    Hi, as far as i know the normal fx5u ethernet port doesn't support the Ethernet/IP Fieldbus. To use Ethernet/IP you'll need the FX5-ENET/IP module. and the EtherNet/IP Configuration Tool for FX5-ENET/IP. See the manual https://eu3a.mitsubishielectric.com/fa/en/dl/13358/FX5-ENET_IP_Users_Manual.pdf If you want to use the normal Ethernet-Port (CPU) you can use the the MC Protocol to read/write data from/to the PLC. In this case you have to write a program for the FANUC r30ia to poll the IO-Data from the PLC. I don't know FANUC r30ia, but it should be possible to send ASCI-Data via Ethernet. Have a look at the Melsec Communication Protocol Manual for details. https://electrobit.ee/web/file_bank/Manuals/kontrollerid/mitsubishi/iqf-series/fx5u/FX5-users-manual-melsec-communication-protocol_ENG_ver_A.pdf If you wan't to try out the MC Protocol maybe the Hercules-Setup Utiltiy is usefull. It's a small utility with an simple TCP/UDP Terminal and its well suited for a quick test. https://www.hw-group.com/software/hercules-setup-utility Hope this helps        
  12. L Series CPU Program Transfer

    hi, here are some thoughts: - you can read and later only download the parameter of the simple motion module without affecting   the parameters of the other intelligent function modules, therefore inside the read from plc dialog   deselect all checkboxes except for the parameter of the simple motion module. Then use the 'detail'   button on the right side to select which parameters from the simple motion module should be read or written - attention: only WRITE the Simple Motion Module Parameters if you use a (second) simple motion module.   If you only replace the cpu-module (connecting the new cpu module to the 'old' simple motion module) you   should NOT WRITE the simple motion module parameters! If you use a second simple module and write   the parameter also be sure to select the 'write to ROM' setting inside the 'details' setting, otherwise the   parameters will be lost after power off.   - you can use the 'MR Configurator' Application to get further information about the error from the   simple motion module. Also you can check if the simple motion module is properly setup.   if you have the servo settings (*.mr file) you can open it inside the mr configurator application.      
  13. L Series CPU Program Transfer

    Hi, had the same problem some time ago, for me following solution worked: 1. clear plc memory 2. upload only Parameter, no program files 3. reboot plc 4. upload program   hope this will help
  14. Communicating to FX5U Using a FX5-ENET

    hello Morne, have a look at the MELSEC iQ-FX5 Ethernet Communication manual https://www.atronika.com/Mitsubishi/PLC/MITSUBISHI_manual_plc_fx5_ethernet.pdf beside the IP-Adress you also have to add a MELSOFT-Connection in the External Device Configuration, see Page 24 of the manual for details    
  15. RIWT special relay

    hello sczot, special link relay (SB) and register (SW) are from the cc-link master modul. If you want to use these, don't forget to setup the automatic refresh settings in the network parameter, othwerwise the releay/register are not updated! have a look at the Mitsubishi Programmable Logic Controller Training Manual (CC-Link course Q-Series) [SH-080620ENG-A] https://dl.mitsubishielectric.com/dl/fa/document/manual/school_text/sh080620eng/sh080620enga.pdf Appendix 4: CC-Link dedicated instructions (for the RIWT instruction) Appendix 3: List of special link relay/register