750-404/000-005 [2 Up Counter/16 Bit/5 kHz] • 47ExampleWAGO-I/O-SYSTEM 750I/O ModulesWith the control and status byte the following tasks are possible:Set Counter:Put Bit 5 (4) into the control byte. The counter 1 (2) with the 16 bit value isloaded into output bytes 0 (1) or 2 (3). As long as the bit is set, the counter canstop and information is stored. The ensuing data of the counter will beconveyed to the status byte. Bit 5 (4) in the status byte communicates thesuccessful load of the counter.Set Outputs:Bits 2 and 3 set the additional two outputs of the counter module.2.1.5.7 ExampleSet Counter 1:First of all the counter reading is set to 100 by "Setting counter", i. e. to thehexadecimal value: 0x64.22.Enter the set value in the output data.The data bytes D0 to D3 of the output data then read as follows:DatenbytesOutput data D3 D2 D1 D0Value 0x00 0x00 0x00 0x6423.Validate the counter reading in the control byte with bit 5 (setting counter1) to have it adopted as an output value. The control byte has the followingbits:SteuerbyteOutput bit B7 B6 B5 B4 B3 B2 B1 B0Value 0 X 1 X X X X X24.Wait for the feedback from the counter module in the status byte, bit 5(counter 1 set). The status byte has the following bits:StatusbyteInput bit B7 B6 B5 B4 B3 B2 B1 B0Value X X 1 X X X X X25.Delete bit 5 (setting counter 1) in the control byte in order to finish theHandshake. The bits in the control byte read as follows:SteuerbyteOutput bit B7 B6 B5 B4 B3 B2 B1 B0Value 0 X 0 X X X X X26.The set counter reading then appears in the input data with the followingdata bytes D0 to D3:Data bytesInput data D3 D2 D1 D0Value 0x00 0x00 0x00 0x64