1 Create a new project using Premium processor of your choice.
2. Open the configuration screen, right click on the lower com port 'B' and select 'New/Replace Submodule'.
3. Select the 'TSXSCP114', click OK.
4. Double click Com port B on the processor, then highlight Channel 1, change the function to 'Modbus Jbus link' via drop down menu.
5. Change parity to None(If required), and validate the configuration.
6. Create a new FBD section within the Master Task.
7. From the toolbar select 'tools > project settings. Click the Language extension Tab and check the 'Directly represented Array variables' and 'Allow Dynamic arrays' (as detailed below) then click OK.
(Removed Image URL: /PubResEXPORT.nsf/2b87ee90be777fc085257c28006ee4ef/3e4085fed9946d3ac125700e0083752d/fl_block_5/19.63F6?OpenElement&FieldElemFormat=gif)
8. Right click on the FBD screen and select FFB Input assistant.
9. Click on the FFB Browse button, Click on the Libset icon then select the Read_var. Click OK.
(Removed Image URL: /PubResEXPORT.nsf/2b87ee90be777fc085257c28006ee4ef/3e4085fed9946d3ac125700e0083752d/fl_block_5/39.AF4E?OpenElement&FieldElemFormat=gif)
10. This will then launch the Input Assistant. Enter details as required.
(Removed Image URL: /PubResEXPORT.nsf/2b87ee90be777fc085257c28006ee4ef/3e4085fed9946d3ac125700e0083752d/fl_block_5/55.7C22?OpenElement&FieldElemFormat=gif)
The address configuration above comprised of the following syntax ADDR('Rack, Module, Channel, Slave address')
Rack = 0
Module = 0 - Processor, May also be 1 if a double wide power supply is used.
Channel = 1 - 0 for TER, 1 for PCMCIA port.
Slave = 1 - Modbus address of slave
Reads 50 consecutive registers starting at address %MW256 (40255) from slave at address 1.
The data is received into an array 50 registers starting at %MW100.
Transaction management parameters are an array 4 words starting at %MW10.
11. Click OK and place the Function block within the FBD section.
(Removed Image URL: /PubResEXPORT.nsf/2b87ee90be777fc085257c28006ee4ef/3e4085fed9946d3ac125700e0083752d/fl_block_5/61.546E?OpenElement&FieldElemFormat=gif)
12. The read_var block will be enabled from the output from a AND_BOOL function block. Launch the FFB Input assistant as before and select AND_BOOL from the Base Lib >Logic library, click OK.
(Removed Image URL: /PubResEXPORT.nsf/2b87ee90be777fc085257c28006ee4ef/3e4085fed9946d3ac125700e0083752d/fl_block_5/77.BCC8?OpenElement&FieldElemFormat=gif)
13. Complete Entry field details.
(Removed Image URL: /PubResEXPORT.nsf/2b87ee90be777fc085257c28006ee4ef/3e4085fed9946d3ac125700e0083752d/fl_block_5/93.862C?OpenElement&FieldElemFormat=gif)
The activity bit (%MW10.0) for the exchange is used prevent communication buffer overflow.
14. Click OK and place the Function block within the FBD section.
15. Negate Input %MW10.0 and connect the output from the AND_BOOL to the enable pin of the Read_var.
(Removed Image URL: /PubResEXPORT.nsf/2b87ee90be777fc085257c28006ee4ef/3e4085fed9946d3ac125700e0083752d/fl_block_5/104.2FE4?OpenElement&FieldElemFormat=gif)
16.Build the project and download to the controller.
17. Configure the Modbus slave set com parameters and speed to match the TSXSCP114. Set slave address to 1.
18. Download to the controller.
(Removed Image URL: /PubResEXPORT.nsf/2b87ee90be777fc085257c28006ee4ef/3e4085fed9946d3ac125700e0083752d/fl_block_5/104.70AA?OpenElement&FieldElemFormat=jpg)
Details above for TSX Micro TER Port (Channel 0)