Configuring EtherCAT BIS V on Omron NJ PLC BIS00U9
Obtain the appropriate ESI files for the BIS00U9 either from the Balluff website or on the disk that is included with the processor. Copy them into the OMRON>Sysmac Studio>IODeviceProfiles>EsiFiles>UserEsiFiles folder in the Program Files(x86) as shown below. There should be a total of four.
Open Sysmac Studio and click New Project. Name the project and select the Device number and version. This is located on the NJ PLC.
Click Create when you have completed the proper selections.
Setting IP Address in Project Double-click on "Built-in EtherNet/IP Port Settings" under Controller Setup as shown below.
This window will pop-up. With "Fixed Setting" selected, you can set the desired IP address for the project. (Default address of the NJ is shown.)
Next, click on the Controller tab at the top of the page and select "Communications Setup ".
Here, you will choose the method of communication with the NJ PLC. I used a direct EtherNet connection in this example.
If known, enter the IP address of the PLC.
You can test the connection with the PLC by clicking the "EtherNet Communications Test" button. The field below will let you know if you have an error or the connection is OK.
Adding the BIS V to the Project Double-click "EtherCAT" under Configurations and Setup in the Multiview Explorer.
If the ESI files were copied into the Sysmac Studio folder properly from Step 1, the BIS00U9 will be in the catalog under the Toolbox on the right side of the screen.
Double-click the BIS V file and it will show up in the Network Configuration under the Master.
Right-click the BIS V in the Network Configuration and select "Edit Module Configuration".
The screen will now look like this and you will see the I/O sizes for the IO-Link port and RFID channels listed on the right side under the Toolbox.
Mapping the I/O Scroll down through the I/O list to find the "r/w head" I/O sizes. Select the desired size, click and drag it to the appropriate head in the node configuration.
Note: The memory registers will be assigned in the order you map them. For consistency, it will be recommended --not essential-- to assign the 4 RFID channels in order so the "M1" memory register will correspond with Head 1 of the RFID processor, etc.
Repeat this process for the remaining 3 RFID channels.
Scroll up in the Toolbox to locate the IO-Link data sizes and map the appropriate sizes to correspond to the IO-Link device being used. There are also standard I/O options if that function is desired from the IO-Link port. Pin 4 is the only point you can map on the BIS V. Note: Pin 2 of the IO-Link port cannot be used for actuator power or I/O. It is used as a USB communication point ONLY.
2 bytes input/2 bytes output are mapped in this example. You will see the memory registers designated by the M# and M1-4 are the RFID channels. M5 will be the IO-Link port data.
The diagnostic inputs, such as "Actuator Short Circuit" and "Sensor Supply Short Circuit", can be found at the bottom of the I/O list in the Toolbox. These can be mapped to the "Additional Inputs" slots.
Click on the Project tab and select "Rebuild Controller" to compile the program thus far.
Creating Variables Double-click on "I/O Map" under Configurations and Setup in the Multiview Explorer. Right-click on "BIS V-6110-063-C002" in the list and select "Create Device Variables".
The variables will populate automatically. This is the fast, easy way of creating a variable for each byte mapped. It is also possible to custom name the variables, but this must be done individually. This may be worthwhile and the names will be more relevant to the project. To do this, left-click the variable field until you see a cursor and type the desired name of the variable. Press "Enter" and it will be created.
Creating a Union Data Type All data types from the BIS V will be an array of a single byte. In order to manipulate at the bit level, it is recommended to create a union data type. Start by double-clicking "Data Types" under Programming in the Multiview Explorer. Then, select "Union".
1. Click in the field under "Name" and an item will populate. Click in the pink field and a cursor will appear. 4. The base type will be BOOL, but this must be changed to BYTE as shown. 2. Type as shown below. Once entered, the box will turn pink again indicating error. Ignore this, right-click on the ubyte and select "Create New Member" and a new line will appear. 5. Right-click on "Value" and create another new member. Type "Bits" for the name and change the base type to an array. 3. Click on the new pink box and type in "Value". 6. Edit the array to read like below. The Union is now created. -----Rebuild the Controller----
In the case double-words will be used, the same process can be repeated. To add a new data type, right click in the field and select "Create New Data Type". The double-word Union will look like this below.
Linking the ubytes to the Variables Since we have created some user defined data types, it is now necessary to link them to the existing variables. This is done by creating additional global variables and defining them as ubytes. Double-click on the "Global Variables" in the Programming section of the Multiview Explorer. You can right-click anywhere in the Global Variables pane and select "Create New".
Name the variable and change the data type to ubyte. The variable is now created.
Double-click on "Section0" under Programming. The panel below with the ladder diagram will show up.
Search for the "MOVE" command in the Toolbox or it can be found in the Data Movement tab.
Click and drag the "MOVE" command to the rung. Enter the memory "array of byte" into the input variable followed by "[0]" The ubyte will be entered in the output variable followed by ".Value". The program will not compile unless this is done and will be seen as an error. This move instruction will link the two and allow the user to see the individual bits when monitoring. The example below shows the link between the variables that will represent the first bit header of RFID Head 1 or the first byte of Head 1 data. This will especially be necessary when manipulating the output buffer for commanding the processor. From this point, the user can reference the ubyte in the logic. -----Rebuild the Controller----
Placing the Program in the Primary Task Note: The program will open with the default program in the "Primary Tasks" at the bottom of the Multiview Explorer. If a new program is added to the "tree", then it must also be added to the "Primary Tasks" as well. This can be done by double-clicking on "Task Settings" also in the Multiview Explorer. Then, click on the 3 rd icon down.
Click on the "add" button. Click in the field and it should drop down the list of available programs created. Once entered, it will show up under the "Primary Task". -----Rebuild the Controller----
Writing the Slave Node Address to the BIS V Double-click on "EtherCAT" under Configurations and Setup. Click on the BIS V in the Network Configuration and enter the desired node address in the Value column to the right.
Go online by clicking the yellow triangle on the toolbar. If this is a new project, a message may pop up asking the user if they want to switch names of the PLC. Click "Yes". A yellow line below the toolbar will indicate the user is online with the PLC. Double-click on "EtherCAT" again if the window is not still open.
Right-click on the Master and select "Write Slave Node Address" from the dropdown menu. -----Rebuild the Controller----
Click on this position and enter the same node address entered in the network configuration in the previous step and click enter. Then click "Write". This message will pop up. Click "Write". This message will pop up if the write was successful. Cycle power on the BIS V.
Download/Transfer to the Controller Click on the Controller tab. Select "Transfer">"To Controller".
Maintain default Options and click "Execute". Click "Yes"
This message should show upon successful download.
Creating a Watch Table The Watch Table is similar to the Siemens' VAT Table and is where you can monitor the variables. To create the Watch Table, click on the eyeglasses icon on the toolbar, at the top of the page. This window will appear at the bottom of the pane. Click on "Watch1" tab at the bottom. Click here to set the cursor. Start typing the name of the variable you wish to monitor. A list of the available variables will populate below for quick selection. Click the triangle to drill down to monitor the bit level. The array type variables can be monitored as well, but the user will not be able to see the bit level.
Please contact Technical Support if you have questions regarding this document. 1-800-543-8390 technical.support@balluff.com