B# Code Syntax

teddy379

Member
Join Date
Feb 2013
Location
USA
Posts
5
Hello,
I've encountered this in a code, and I don't know what it means.

L B#(1, 255)

It seems to multiply the 255 by 1 + 1 and then it adds 1.
 
Hello,
I've encountered this in a code, and I don't know what it means.

L B#(1, 255)

It seems to multiply the 255 by 1 + 1 and then it adds 1.

It is not often seen, but it acts like the S5 instruction L KY 1,255.

It loads a 16 bits word to the accu, the value is given by two byte values, byte 0 = 1, Byte 1 = 255.

Kalle
 

Similar Topics

Hi All, Someone at work has put a PLC system on my desk, that's just been taken off an idle production line. He said "It's an S7 PLC. We don't...
Replies
10
Views
230
hello, I'm a student and for my final grade I have to repare a sepro robot. the only problem I have for now is that i have an error code 3...
Replies
0
Views
35
I received an email from a student with the following code attached. This is supposed to control a floodgate system, and supposed to be written...
Replies
23
Views
780
I have a machine which is undergoing upgradation. As part of the process two SEW drives are being replaced., existing Gen B with new Gen C. The...
Replies
3
Views
197
I want to set user security level based on the value of a tag in my PLC called "ActiveUser". That tag will contain the A-P code which we use for...
Replies
6
Views
214
Back
Top Bottom