SYSTEM.BWDZ The subroutine SYSTEM.BWDZ is used to convert 16 or 32 values of a binary data field into a bit sequence of an analog variable. SYSTEM.BWDZ is used, for instance, to determine the equality of 32 values of two binary data fields by using only one analog comparison operation in order to save computer time.Analog result variable, in whose mantissa the preset binary value sequence is shown as bit sequence. The start of the bit sequence in the first or second word of the mantissa depends on p1. p1 even: 16 bits are stored in the first word of the mantissa. The exponent is 15. The bit sequence thus has a significance of 20 (=1st binary value) to 214 and the sign bit (=16th binary value). The result variable corresponds to the data type ID with a value range of –32768 to +32767.
In order to save computer time
the input parameters in SYSTEM.BWDZ are not checked. Wrong inputs of p1 or p2 result in wrong values in the result variable p3. If undefined data addresses are addressed, the processing of SYSTEM.BWDZ is aborted with the I&C alarm S 304 without defined assignment of the result variables. If p1 or p2 resulting from an arithmetic operation are no integers, they must ne converted into binary values using the DIG command before being transferred to SYSTEM.BWDZ. Yet with a run time of approx. 17 ms, the DIG command takes relatively long.
32 bits are stored in both words of the mantissa.
The exponent is 31. The bit sequence thus has a significance of 20 (=1st binary value in the 2nd word of the mantissa on the right) to 230 and the sign bit (=32nd binary value in the 1st word of the mantissa on the left). The result variable corresponds to the data type PAD with a value range of –214748 3648 to + 2147483648. It can also be stored as an S4 string.
after-sale service
Focus on sales of imported industrial automation equipment
1 year professional warranty service
Our large inventory contains current and outdated products in the automation industry, if you are looking for new leftovers Products. We are knowledgeable and friendly about all outdated and legacy automation, our remaining products or discontinued parts Our internal team tests each part before delivery. Good colleagues can help you get what you need,All parts sold by AMIKON are actually in stock. With our competitive prices, we will This makes emergency transportation a solution to emergency shutdown. Haodi provides you with the necessary parts inventory A simple solution to the situation.