totallypopla.blogg.se

Gx works 2 instruction list
Gx works 2 instruction list













  1. #Gx works 2 instruction list code
  2. #Gx works 2 instruction list series

T11 with parameters of K5, it simply explains what an "out-function" does. Whenever i use the Open Instruction List Help when having a "output" labeled I.E. So far it seems my guesses has been accurate enough - that's good to know =P Although i can't speak for anyone who's curious or wondering in the future - but they'll have to post themselves if there's something they don't understand ^^ Yeah, you're making more than enough sense for my part.

#Gx works 2 instruction list code

If this is the code you can monitor online and do a device batch monitor of data register D2 and see what data is in there. Look at the sample code you posted, FROM K0 K5 D2 K4. To find the data you could reference the to/from commands we talked about before. If it ends with DA (digital to analog)it is an analog output module. What is the part number on the module connected to the unit? If it ends with AD (analog to digital)it is an analog input module. The timer will run until it reaches the value in D1 which can be adjusted via HMI etc. If I wanted to be able to adjust the timer preset value than I could use a D register instead of a K, i.e. For example if I wanted a 1 second timer the instruction would be wriiten as T0 K10. It is written in the code and cannot be changed without modifying the code. K in front of something simply means it is a constant. it seems like it's being used everywhere for everything with no real correlation. And as far as I can gather from your reply, that module is mapped to K0?Īnd in that case - if the module is used for reading analogue values, and there's only one channel connected to anything, is it then safe to assume that there is no analogue output, or does the FX-64MR PLC come with an merged analogue output?Īnd what is the definition of Kxx? I just can't seem to wrap my head around it. How do I find if there's such a thing in the program?īecause There's one module on this PLC. Thanks a lot for the help, you're a great aid. The reason for that difference is probably because the program was made with Medoc, and then merely converted to GX Works 2, I guess. Your TO command simply puts the constant 8 into the buffer memory location 1 of the first module connected to the PLC, using 1 word of data. K5 is the buffer memory location the data to be read is stored in, D2 is the data register the data is going to be put into, and k4 is the number of words transferred. To break down your example code, FROM K0 K5 D2 K4 the K0 is the location of the special function module you are reading from.

#Gx works 2 instruction list series

You must be using a FX series PLC, with a Q series using GX Works 2 the need for this is eliminated. TO and FROM are used to read and write data between the PLC and any extension units connected to it. I'm guessing K0 and then some kind of reading from K5 as well? And ultimately leave it all in K4. I would assume it read an word-value (as in analogue) from one of them. How does the "To" and "From" functions work? And when I ask about these, I am fairly certain I have no real clue as to how their correlation with the operands. Now there's no doubt about how that works. A tad deeper than necessarily, but that's neat.















Gx works 2 instruction list