IMHO leaving the execute flag on TRUE while changing the index would be bad practice, as this could lead to inconsistent data. Process should always be: prepare command -> execute command -> read results -> prepare next command and so on. This also gives you a nice trigger flag && commands executed incr by 1.
You can however prepare multiple commands in a FIFO in your PLC to send them one after the other and store the results in a FIFO buffer and process them later and at a slower speed if your process in the PLC takes too long. But this is a unlikely scenario as you will mostly need the data from the RFID to control some process or some process has influence on the data you want to store on the RFID and you want to write specific data into a specific RFID tag.
Hi i learn newly factory i o , I want to use RFID for read a code from one of box , but really i do not how can i start , i donât understand how can i program and configuration this sensor . could you help me with a simple example . thank you
Hi ⌠you will find two examples at the top of this thread. Iâve provided a Read Station and Write Station Scenario using the built-in Controlio Language and also standard PLC Ladder (using the same timing). The coding is also provided in pdf format for those who do have use the Rockwell Platform. A timing diagram is also included. This is certainly not the only way to program an RFID, just one example. I hope reading through the material will help answer your question.
thank you so much , at first time I look at this program , but it was so hard for me , because could not understand exactly how can we use tags for rfid , and what work exactly every tags .
Posting on the forum gives you the benefit of years of experience across many platforms and industries. How I implement or create a system is just one of many correct (or nearly correct ) options. However, there is a message utility to send private messages as well if you would rather not post publicly.
And I want to use the RFID for adding to every pallet an id because I will make a station to unload them , so I need the id to be able to lower any pallet from the stacker cranes.
Because I will use 3 stacker cranes with 2 racks in every crane, I will have (3x2x54) 324 different positions and so 324 different ids.
So my question is , because i will use the database of the TIA portal to save and load the ID , should i need to change the Memory Index.
If i understand it correctly , the memory index is like a pointer , to âpointâ the ID that you want to write.
But i will use like a Static INT in the DataBase of the TIA Portal to write or read the ID.
Assuming I am remembering correctly, if you are just reading the unique ID number that is assigned automatically by Factoryio, there is no need to index, just select the correct RFID mode. If you are writing your own data to the tag, you will require the RFID mode selection (read or write) and also an index number pointing to that memory location (0, 1, 2, 3, etc). Reading the automatically generated unique ID is independent of the memory index pointer.
So , the zero base index suport 4 bit numbers ( 0-8).
If i need to write an id with the numbers 9 , i will âpointâ the second memory location, or i need to write the first location and then add to the second location the remains.
Your user specific ID will be written to and read from memory locations starting at â0â to â127â based on your Index Integer value. If you place a read/write head into your project, the I/O requirements may be more clear.
Iâm not sure if I understand you correctly.
The RFID tags do have a unique serial number that you could use.
Alternatively if you want to assign your own ID you could just use the DWORD at Index 0.
With that DWORD you would already have 2^32 or about 4.3 Billion unique Numbers at your disposal to form an ID.
A length of 8 digits should already be enough for most purposes, meaning youâd use 24bits for 16.8 Million numbers.
Hello sir hope this meets you well, i only started working on factory IO in may and now i have a project working with RFIDs. I am still finding it hard to comprehend how to utilize the RFIDs i have built the scene in factory IO and all i need to do is control but i am lost. Is there any step by step tutorial you can recommend to bring me out of these mess?.
Is there any particular item you are getting hung up on? I provided a Controlio and Ladder sample as well as a timing chart at the beginning of this topic.
As the Documentation states, each RFID Tag has 128 DWORD (or 4 bytes each) of memory plus a unique serial number.
The serial number is read by using the command ID 1 with the RFID reader. The memory is read and written by using the command ID 2 and 3 respectively and by providing an additional memory index from 0 to 127.
The reader is triggered by a rising edge on the âExecute Commandâ input.
I suggest that you follow the few steps I laid out in my linked reply to get familiar with the tag reader in a static setting.
Be aware that because this is a simulation, the time needed to read and write data might be longer than in a real field application. See the timing diagram provided by @wayneschaefer at the beginning of this thread for more details.