From the course: PLC Program Flow and Control Instructions
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Bit shift register parameters - Ladder Logic Tutorial
From the course: PLC Program Flow and Control Instructions
Bit shift register parameters
- [Teacher] The two instructions, BSL and BSR have the same parameters. The first parameter, file is the address location. Simply, the file to shift the data in. The address must start with the hashtag sign. An example is B3:10, which means binary file three word 10 starting from bit zero. Any remaining bits in this word cannot be used all swear in the program because the instruction invalidates them. The second parameter, bit address, is the interest of the source bit. It could be an internal or external address. Here's an example. A sensor is connected to input one, bit one. So this is the source of the bit and it's being shifted side B3 word 10. The length parameter indicates the number of bits to be shifted or the file length in bits, whether using the whole word or couple of bits within a word. The control parameter is the address of the control file which monitors and controls the shift instruction. It is a…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.