We will show you how to launch a simulator on the Schneider-Electric Unity Pro (EcoStruxure Control Expert).Almost everything can be tested using the Schneider Electric PLC simulator.
I have also included Schneider Electric PLC simulator user manual guide (EcoStruxure Control Expert PLC Simulator, reference EIO0000001714), and the link to that document has been provided below (in the reference section). The table has been extracted from the EcoStruxure Control Expert PLC Simulator (reference EIO0000001714). Schneider Unity Pro Programming Software Development WhenI have been doing software development when 10 years old and have never looked back. But which index I use an index for the NUM,GEST and RECP of readvar. Schneider Unity Pro Programming Manuals Now ButI have red a lot of manuals now but i dont get a flashing serial com light on the m340. The cable I use is 2 wire rs485 In the program i use the readvar function and the adress function. In the program I made it 0.0.0.2 (string) May be i forgot something but i dont know what so if anybody can help me it would be most welcome. How about Management tableparameters, you have to init all management parameters before you call readvar block. Var block) If you dont get led to flash, there is something frong in plc code. I have noticed that sometimes readvar and writevar blocks dont work in Unity, even if all communication parameters are correctly placedconfigured. To correct this you have to cut readvar block from ladder program and paste it back, reload plc program and after that communications start to work. Readvar and writeVar blocks can corrupt somehow This only happens sometimes, but this have happend to me couple times. This have only happened when I have loaded program first time to plc, online changes dont cause this. Take a look also to activity bit, it can sometimes remain logical state 1 and if this happens no communication, if you use activity bit as condition before you call readvar block. If activity bit remains its true state ex. Activity bit should return automatically to false state after timeout elapse, but this dont allways work, so you have take care of this on plc code.). When i looked online in the TCOMMBBMX parameter the cts bit was set to one and the protocol was a 6 for master the rest was zero. In the second integer of the management array was standing a 4. But do I have to reset the management table everytime Iam going to call the read block After this I can set the time out values but arent these set in the hardware And you are taking about a activity bit where is that located And the most important question of all in what manual I can find this or does schneider have example programmes. I have used separate management parameters to every readwritevar block, but using same management parameters to all readvar block is ok, if you dont call multiple readvar blocks same time. I think that you can call up to 8 read or writevar blocks same time, but I call only one block at time. How many blocks you can call same time depends of hardwire) Timeout value is also defined on hardware properties like you said, but you can set timeout value to smaller via plc programmanagemet parameters. If you leave timeout value to zero (Most significant byte of third management parameter) PLC program uses timeout value from hardware properties (same place, where you can change baudrate, parity etc.) Activity bit is first bit of first management parameter. You are right, activity bit should automatically reseted back to 0 after timeout by readVar block, but sometimes activity bit remais its 1 state also after timeout and communications magically stops, if activity bits are condition to call communication blocks. So I have programmed separate reset for activity bit. Force reset) ex. hardware timeout is 1s, but if activity bit is true for 10s of some reason, which it shouldnt be possible PLC program resets activity bit and communication starts again. Take a look to help files of Unity, if you look readvar help file from communications library, you can see example which is writed on ST format, you can also use find command: Example including execution check and you should find example of using readvar block. Anyway using read and write block on unity is little bit tricky, I have learned most of this by doing If you search management parameters from help files, you should find documention, which tells meaning of every management parameter. P.s If second management parameter have value 160004 it means incorrect destination addrees error (managemt parameters are mux of two different bytes, least and most signifant byte have different meaning, so you should divide management parameters to seperate bytes before you look them. Second management is mux of communication report (least significant byte) and Operation report (most significant byte). Everything seems perfect but after about half a a day of perfect communication, master stops communicating with the slave Communication freezes and the orange led (Ser com) is off All I have to do is power off and power on the master plc and everything is ok again. I dont why is this happening The only thing I noticed is that in sw125 of master has the message 16DEF3 which means index overflows.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |