10/24/2013 9:35 AM | |
Joined: 1/21/2013 Last visit: 10/23/2024 Posts: 4620 Rating: (708) |
Hi maxamb, if your # temp_word, has the address 0 you have the 16 bits that are local L0.0, L0.1, L0.2, etc.. |
10/24/2013 10:32 AM | |
Posts: 14 Rating: (0) |
Thanks. maxamb |
This contribution was helpful to1 thankful Users |
10/28/2013 12:42 PM | |
Joined: 6/24/2013 Last visit: 11/11/2024 Posts: 1652 Rating: (426) |
A small addition: 1. in TEMP area You can create bool variables for each bit of Your status word 2. in program copy Your status word to LW0 3. AFTER copy You can scan for individual bits using symbolic names. The same You can do to control word: 1. in TEMP area create bool variables for each bit in control word [for example from L2.0 onwards] 2. in program use bits which are manipulated in control word. not used bits - write explicitly 0 at beginning of the FB. used - use assign NOT set/reset coils. 3. at end read status word and send to its destination: :L LW2 T <Your variable> Example in attached PDF - block which controls micromaster 440 drive. Attachmentfc20.pdf (761 Downloads) |
Follow us on