Download SoftPLC Manual
Transcript
4.6.6 Multiplexer – MUX Menu: Insert - Function Blocks - Transfer - MUX Input: EN: Enables the mathematic operation. Output: ENO: Indicates that the transfer has been done. Properties: X0-X15: Binary data vector. W: Resulting word. In the example above, when the EN input is active, the digital inputs 1, 2 and 3 transfer their content to the bits 0, 1 and 2 of the user parameter P1010. 4.6.7 Demultiplexer – DMUX Menu: Insert - Function Blocks - Transfer - DMUX Input: EN: Enables the mathematic operation. Output: ENO: Indicates that the transfer has been done. Properties: W: Source word. X0-X15: Resulting binary data vector. In the example above, when the EN input is active, the bits 1, 2, 5, 6, 11, 13 and 15 of the word marker 8000 are transferred respectively to the bit markers 5001, 5002, 5005, 5006, 5011, 5013 and 5015. 21