Search the Community

Showing results for tags 'gxworks2'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 8 results

  1. Absolute value in ST

    Hi everybody I'm trying to create a code to count an absolute value from my Q64AD module. I found absolute value function ABS, but its working somewhat strange, and i do not see the difference between real value and absolute value. Then I created a timer for an absolute value with some mathematics: SUM1:= SUM1 + napr1; Nsum := Nsum + 1; IF timer_sr.Q THEN timer_sr(IN:= NOT timer_sr.Q , PT:= T#100ms); outsr := SUM1 /Nsum; Nsum := 0; SUM2 := 0; END_IF;   where napr1 - is value from Q64AD module ch1. It worked on codesys, but not working here. Data type of sum1, napr1, nsum is Word[signed]. In codesys Nsum was INT type. What's the difference and what i did wrong?
  2. GX Works2 & MX OPC Server 6.10 issue

    Hello! What i am about to do is connecting an external SCADA system to a Mitsubishi PLC via OPC server. I have already made some FBs and included their instances in a program in GX Works2, then started a GX Simulator2 and connected it to an OPC Server. From the OPC configurator I have defined some tags with their corresponding device addresses (e.g. D12345). I am using structured variables which device addresses i am entering in the OPC configurator. Tried to make some full rebuild compiling and at first was happy that the devices remain unchanged. The main problem is that after some time this devices change which completely ruined my experiment. Maybe there is some point that I am missing or there is just no way to use a fully functional SCADA connected that way to the Mitsubishi PLC (by OPC)? The question is is there a way to tell a particularly used instance of a function block to have exactly the same device addresses ever. 
  3. GXWorks2 Label changes

    Hi Sorry if this has been asked before but I have done some searching and couldn't find any answers in the forum. If I have a label that I use in my ladder, I can edit the address of the label any everything works OK (i.e. the ladder references the Label and not the direct address) If I need to change the text of the label, but keep the address the same, the ladder fails as it is using the label as the reference to the address. Is there anyway I can change a label and have it automatically update the ladder with the change  e.g. lets say I have a label called 'counter_1' which is used throughout the ladder code. If I want to change the name of the label to 'counter_A', I can alter it in the Global Labels (the excel type thing), but then have to update it manually everywhere in my ladder. any help would be much appreciated thanks Andy    
  4. Good day Please assist me - pertaining to the QSeries GXWorks2 Programming  - and in particular the utilization of the macrocode functionality. The information required includes; [1] Purpose of macrocode (incl advantages) [2] its utilization's effects on the PLC programming memory (it appears that it consumes more programming memory. [3] any reference documentation that could be used - containing specifically information regarding this feature (note most manuals doesn't discuss this)
  5. GX IEC Developer to GXWorks2

    Hi all, I am a newbee with GX works2 and I got stuck in the change of developer software. Hope anyone can help me to find a easy way to solve this. I got a program in GX IEC Developer 7.04 where I have Latch(1) on all D register I am using. PARAMETER - PLC DEVICE - Data register is 0-13312 and SystemVariable are from 3000-13311. I have not find a way in GXWorks 2 to allow the same. I figure out I need to change variable type in FB to VAR_RETAIN but how do I solve this for Global variable? Do I have do give all the variable fix addresses?  
  6. Unable to Monitor in GXworks2

    Hi! Anyone can help regarding this issue. I'm not able to monitor the Motor Block that I have created. there's no error either in the output screen but i'm thinking what is the cause of not running in the simulation which shows the Motor Folder RED  even it was compiled. thanks for the help!     Note: I'm new in mitsubishi.
  7. FX3U Analog Programming

    Hi,  Anyone can help how to program a analog coming from a level transmitter? I have 8 analog inputs (2 unit of FX3U-4AD) to be read out into the plc program. how can this be possible. I'm new to mitsubishi analog. it is different from my experience(using siemens before).   Hope someone can help.   Thanks!!!   Marky
  8. FX3U_GXWORKS2_BINARYCODE_BY_OUTPUTS

    Hi all, Im new with plc programming and now I need some help. As topic says, I have FX3U plc and gx works2. Now, I need to tell stack heigth as positions by output. We all agree, that you can tell ten different situations when you have four outputs (Y1 and Y4 = position five). Is there any practical/ reasonable way to do this when you need use outputs. For example, is there any Functions for this, or? Best regards Ultra.