Friday, September 11, 2015

Microsoft Dynamics AX 2012 Manufacturing – Lean IoT Scenario Part 2: Hardware/Device (Raspberry Pi)

Microsoft Dynamics AX 2012 Manufacturing – Lean IoT Scenario Part 2: Hardware/Device (Raspberry Pi)
 
Purpose: The purpose of this document is to illustrate how to make use of IoT device for a full automation of Make to Order Lean Manufacturing scenario in Microsoft Dynamics AX 2012.

Challenge: Microsoft Dynamics AX 2012 out-of-the-box enables mixed mode manufacturing including discrete, process, project and Lean approaches. In the previous part we established an end-to-end functional flow for Make to Order Lean Manufacturing scenario, this gives us a great context. Now the goal is to explore how we can make use of IoT device to implement a broader Lean IoT Demo scenario using the concept of "Intelligent" location. 

Solution: Lean IoT Demo scenario introduces a concept "Intelligent" location which is capable of monitoring itself and automatically send signals for ERP system to trigger appropriate actions. In the context of this scenario we have 2 people involved: Workcell worker and Water spider. Workcell worker is responsible for assembling the product in Workcell. Water spider is responsible for making sure that Workcell worker always has enough parts to produce the product. Workcell worker is constantly picking parts from his Parts location, and Water spider is replenishing Parts location from General storage location based on a need of Workcell worker. Now when demand comes in during Lean IoT Demo scenario we want "Intelligent" location to detect that it is empty and replenishment is needed, this will automatically trigger Transfer job for Water spider, and when Water spider replenished "Intelligent" location his Transfer job will automatically be completed because the location knows that it is full now. At this point "Intelligent" location will trigger Process job for Workcell worker, because now the location is full and Workcell worker can pick a part from it, once Workcell worker picks his part "Intelligent location" will automatically complete Process job and trigger another Transfer job for Water spider if there's a waiting demand. This cycle will be repeated over time while there's unsatisfied demand. This scenario showcases how operations efficiency can be tremendously improved when using the latest technological advancements. In its turn improved operations efficiency leads to more quality time spent manufacturing the product, more quality product itself and more happy customers in the end.     
 
Please find Part 1 article of this series which describes a functionality here: http://ax2012manufacturing.blogspot.com/2015/09/microsoft-dynamics-ax-2012.html
 
Walkthrough
After we described the scenario verbally I'll also provide a visual diagram below
Diagram
 
 
<![if !vml]><![endif]>
 
Having this scenario to implement we have to decide what hardware to use and how to use it. Obviously in order to implement "Intelligent" location which scans itself we'll need some sensors. In addition to this in order to support this scenario we need to decide what backend will be used and how, and how to write appropriate business logic for it. Finally we should not forget to think about how device will communicate with the backend, how device will be powered and how to observe the results of the scenario. This is exactly what we'll do below …  
 
Let's start with the device itself 
 
Section: Device
 
There may be multiple options of devices to be used. For example, Raspberry Pi 2 or Arduino. I chose Raspberry Pi 2 for this scenario. The Raspberry Pi is a tiny and affordable computer that you can use to learn programming through fun or any practical projects. Microsoft Windows Dev Center provides a tremendous amount of resources to get you started with building your own IoT scenarios. Here is a great place to start: https://dev.windows.com/en-us/iot
 
When looking at Raspberry Pi 2 device we'll see that it has got SD card (1) (where Windows 10 IoT Core OS will be loaded to), Ethernet port (2) for communication, HDMI port (3) for connecting to a display,  power (4) and multiple USB ports( for example, if you want to connect an external USB keyboard, etc.) 
 
Raspberry Pi
 
 
Please find more details about Raspberry Pi device here: https://www.raspberrypi.org/
 
As I mentioned above I'm going to run Windows 10 IoT Core OS on Raspberry Pi 2 device. Assuming that you loaded Windows 10 IoT Core OS onto SD card, the OS will start right after you connect Raspberry Pi 2 to power. When OS will load and you connect Raspberry Pi to a display using HDMI port you will see the following user interface  
 
Windows 10 IoT Core
 
 
In case you connect WiFi dongle to Raspberry Pi device you will also see a prompt to connect to available WiFi network(s) when OS loads
 
Please find detailed instructions about how to prepare Raspberry Pi device, load Windows 10 IoT Core OS on it and more here: https://dev.windows.com/en-us/iot
 
Okay, when we have Raspberry Pi device loaded with Windows 10 IoT Core OS we can take a closer look at its Pinout and figure out how to program it
 
Raspberry Pi Pinout
 
 
There's a number of Pins as described on the picture above. Different Pins have different meaning as described below
 
PWR      Power
GND      Ground
GPIO     General Purpose Input/Output
SPI          Serial Peripheral Interface
I2C          Inter Integrated Circuit
 
Please find more details about Pinout here: https://ms-iot.github.io/content/en-US/win10/samples/Blinky.htm
 
Let's just clarify a couple of things about different types of Pins. There're a 3 main groups of Pins as described in the table below
 
GPIO – General Purpose Input/Output (represented by Windows.Devices.Gpio namespace)
GPIO is a generic pin on an integrated circuit whose behavior, including whether it is an input or output pin, can be controlled by the user at run time
- GPIO pins can be configured to be input or output
- GPIO pins can be enabled/disabled
- Input values are readable (typically high=1, low=0)
- Output values are writable/readable
- Input values can often be used as IRQs (typically for wakeup events)
SPI – Serial Peripheral Interface (represented by Windows.Devices.Spi namespace)
SPI bus is a synchronous serial communication interface specification used for short distance communication, primarily in embedded systems
I2C – Inter Integrated Circuit (represented by Windows.Devices.I2c namespace)
I2C is a multi-master, multi-slave, single-ended, serial computer bus which is typically used for attaching lower-speed peripheral ICs to processors and microcontrollers

Now we are at the point when we know enough about the device and can put something tangible together. Let's explore what sensors may help us to implement the scenario
 
Section: Sensors
 
This is how my setup for Lean IoT Demo scenario looks like
 
Setup
 
 
On my table you can observe the following components:
<![if !supportLists]>-          <![endif]>Raspberry Pi device in the plastic case
<![if !supportLists]>-          <![endif]>2 toy Wheels/Tires because this is what I'm going to put into Parts location
<![if !supportLists]>-          <![endif]>LED/Light to indicate whether the location is empty (Red) or Full (Green)
<![if !supportLists]>-          <![endif]>Obstacle detection sensor (lower left corner)
<![if !supportLists]>-          <![endif]>Infrared transmitter sensor (upper right corner)
<![if !supportLists]>-          <![endif]>Infrared receiver sensor (lower right corner)
 
The reason I have 3 sensors in place is because I actually implemented this scenario in 2 variations. Variation 1 uses Obstacle detection sensor which has both Infrared transmitter and Infrared receiver on-board, and Variation 2 uses Infrared transmitter sensor and Infrared receiver sensor separately. I'll explain the difference below 
 
Here's a diagram that explains the details from hardware perspective
 
Diagram
<![if !vml]><![endif]>
 
On the left hand side I describe the difference between Variation 1 and Variation 2 from signal propagation perspective.
 
Variation 1 uses Obstacle detection sensor which works like following:
<![if !supportLists]>-          <![endif]>Infrared transmitter sends a signal
<![if !supportLists]>-          <![endif]>Signal gets reflected from the object (assuming a part does exist in Part location)
<![if !supportLists]>-          <![endif]>Infrared receiver receives reflected signal back within time period T 
Variation 2 uses Infrared transmitter and Infrared receiver separately, Infrared transmitter is positioned directly against Infrared receiver, so this is how it works:
<![if !supportLists]>-          <![endif]>Infrared transmitter sends a signal
<![if !supportLists]>-          <![endif]>If there's nothing in between Infrared transmitter and Infrared receiver the latter will receive the signal within time period T
 
The principal difference between Variation 1 and Variation 2 is that for Obstacle detection sensor its Infrared transmitter and Infrared receiver already work in sync because they sit on the same board, and when you use them separately you have to physically control when and how the signal gets sent and when and how it gets received which is more work to do.
 
Obstacle detection sensor has great application for inventory counting (say products roll against it on a conveyor belt), however for an obstacle to be detected you have to physically move it against the sensor. This poses a slight inconvenience when "Intelligent" location has to detect its state (Empty or Full) right from the beginning of the scenario when you turn on the device. So the assumption would be that the location is Empty at the beginning (which may not be the case always). Actually that's why I also implemented the same scenario using Infrared transmitter and Infrared receiver separately, so I can control when and how the signal gets sent and received. And I can easily detect the initial state of the "Intelligent" location. This is a great example of why knowing the physical capabilities of your sensors is important for the success of the scenario. Please find more info about sensors I used here: http://sunfounder.com/
 
As you can see I connected my sensors with multiple jumper wires (female-to-female). In order to facilitate this you may consider using a HAT which plugs into Raspberry Pi and provides bus connections instead of using individual wires. Please find more info about Raspberry Pi HATs here: https://www.ghielectronics.com/catalog/category/538
 
Let's take a closer look at sensors
 
Sensors
 
Please review the following videos describing how hardware part of the scenario works:
<![if !supportLists]>-          <![endif]>Using 1 sensor (Obstacle detection sensor) for "Intelligent" location monitoring: http://1drv.ms/1Q7E2mS
<![if !supportLists]>-          <![endif]>Using 2 sensors (IR-T + IR-R) for "Intelligent" location monitoring: http://1drv.ms/1Q7E3av
 
Now we can think about how we can control Raspberry Pi device programmatically
 
Section: App
 
Luckily for us you can easily write Windows 10 Universal Apps with UI (user interface) or headless background apps without UI (user interface) for Raspberry Pi running Windows 10 IoT Core. Please find more info about how to start coding your IoT scenarios quickly here: https://ms-iot.github.io/content/en-US/win10/StartCoding.htm
 
In Part 3 article of this series I'll provide details about Headless Background App I wrote to program Raspberry Pi device, control and read the state of its sensors
 
Now let's put a quick word about the backend we will use for this scenario
 
Section: Backend
 
For this scenario in particular I used Microsoft Dynamics AX 2012 R3 deployed using Microsoft Dynamics Lifecycle Services (LCS): https://lcs.dynamics.com/.  To enable communication with Microsoft Dynamics AX 2012 R3 I enabled IIS Web Services and exposed Inbound port via HTTP/HTTPS. I'll explain the details of the Web Services used for this scenario in Part 3 article of this series.
 
It is important to mention that when you build Windows 10 Universal Apps with UI (user interface) or headless background apps without UI (user interface) for Raspberry Pi running Windows 10 IoT Core you can easily add Web Service reference to your project just like you are used to. Then you can invoke Microsoft Dynamics AX 2012 R3 Web Service asynchronously (recommended) or synchronously from the App that runs on Raspberry Pi under Windows 10 IoT Core OS. 
 
Please note that for the sake of simplicity I implemented a direct communication between Microsoft Dynamics AX 2012 R3 backend and Raspberry Pi App which is not suitable and would not scale for production deployment of solution.
 
Section: Hub
 
In order to provide a scalable and secure architecture for IoT devices communicating with Microsoft Dynamics AX 2012 R3 backend it would be recommended to use a middle-tier/hub, for example, Windows Azure Event Hubs which is a part of Windows Azure IoT Suite of services. Please find more info Windows Azure Event Hubs here: http://azure.microsoft.com/en-us/services/event-hubs/
 
Now let's think through the practicality of this setup
 
Section: Connectivity
 
In my setup I used Raspberry Pi Ethernet port to enable communication with Microsoft Dynamics AX 2012 R3 backend in the Cloud. Also it is possible to plug in a supported Raspberry Pi USB Wi-Fi Dongle for enabling wireless communication capabilities. When you load Windows 10 IoT Core OS the system will prompt you to connect to an available WiFi network. Then you can verify you connection details by going to Windows 10 IoT Core > Device settings > Network & Wi-Fi
 
Raspberry Pi USB Wi-Fi Dongle
 
 
Please note that I tried to use EDIMax WiFi Dongle with Raspberry Pi running Windows 10 IoT Core and it didn't work for me (as it was not listed as a supported WiFi Dongle for Windows 10 IoT Core OS at the time of this POC)
 
 
Section: Power
 
Please note that you can connect Raspberry Pi to power using out of the box power adapter or external power adapter instead. Raspberry Pi will need a steady 2A for proper performance. External power adapter I used had the following characteristics:
 
Input: DC 5V-1000mA
Output: DC 5V-1000mA
Capacity: 2600mAh
 
Section: Display
 
As I mentioned before you can connect Raspberry Pi to a display using its HDMI port
 
Now as we explored the device I will also provide a quick reference about how IoT is helping companies to achieve better results today
 
Section: References
 
German Manufacturer Links Workers to Parts and Stations via RFID, Bluetooth
 
Bosch Rexroth developed the solution to improve efficiency and accuracy at its own hydraulic valve assembly facility, and is marketing the system for use by other manufacturers as well.
 
The solution sends instructions to each employee at his or her workstation, based on the components for the particular item being assembled at that location.
 
Please fine more info about how Bosch leverages IoT to achieve more here: http://www.rfidjournal.com/articles/view?13434
 
Summary: In this walkthrough I illustrated how to make use of IoT device for a full automation of Make to Order Lean Manufacturing scenario in Microsoft Dynamics AX 2012. We explored the details of the device, how to use sensors to implement the scenario, and then reviewed other considerations to help to establish a successful scenario. Now we should have a good understanding of hardware part and a solid foundation for taking care of software part. 
                               
Tags: Microsoft Dynamics AX 2012 R3, Internet of Things, IoT, Raspberry Pi, Windows 10 IoT Core, Windows 10 Universal Apps, Web Services.
 
Note: This document is intended for information purposes only, presented as it is with no warranties from the author. This document may be updated with more content to better outline the issues and describe the solutions.
 
Author: Alex Anikiev, PhD, MCP

Special thanks for collaboration in building this scenario goes to my colleague, Microsoft Dynamics AX Manufacturing expert, Dan Burke

Microsoft Dynamics AX 2012 Manufacturing – Lean IoT Scenario Part 1: Functionality/Make to Order

Microsoft Dynamics AX 2012 Manufacturing – Lean IoT Scenario Part 1: Functionality/Make to Order
 
Purpose: The purpose of this document is to illustrate a classic Make to Order Lean Manufacturing scenario in Microsoft Dynamics AX 2012 on simplified example when manufacturing motorcycles. This document will outline end-to-end functional flow for the scenario from initial setup all the way to Lean costing.

Challenge: Microsoft Dynamics AX 2012 out-of-the-box enables mixed mode manufacturing including discrete, process, project and Lean approaches. The goal will be to establish an end-to-end functional flow for Make to Order Lean Manufacturing scenario, better understand what it takes to do it. And then automate this scenario for the future use in a broader Lean IoT Demo scenario using IoT devices and the power of Microsoft Windows 10 IoT Core OS. 

Solution: The simple but at the same time descriptive real-world example of motorcycles manufacturing provides a necessary context for better understanding of manufacturing processes and their implementation in Microsoft Dynamics AX. In particular we will be dealing with simple bill of materials which will consist of 2 components and straightforward production flow with 2 activities (one transfer and one process) to supply one of the components in order to implement Make to Order scenario.
 
For more detailed explanation of Make to Stock Lean Manufacturing scenario please refer to my earlier blog here: http://ax2012manufacturing.blogspot.com/2012/12/microsoft-dynamics-ax-2012_2.html
 
Walkthrough
 
In this scenario Motorcycle will be manufactured using Lean approach. Motorcycle components (Body and Wheels) will be assembled together in a work cell. But before this happens one of components (Wheels) will have to be supplied into Part location from General storage location by Water spider, once this happens Work cells worker will be able to pick a part from replenished Part location and use it for assembly. For the sake of simplicity another part (Body) is considered to be available for picking in its own location (the assumption is that it is available in on-hand inventory)
 
BOM
Production flow
<![if !vml]><![endif]>
<![if !vml]><![endif]>
 
Please note that the idea is to replenish Wheels from General storage location (Warehouse 11) into Part location (Warehouse 12). Body will be picked directly from its Part location (Warehouse 12). And the finished product AlexMotorcycle will be put into Finished product location (Warehouse 13). I used Warehouses instead of Locations (potentially within the same warehouse) only for the sake of clarity. Please see the diagram below for a visual explanation of the scenario.  
 
Diagram
 
<![if !vml]><![endif]>
 
On the visual diagram 3 Workcell workers work in their respective Work cells, and Water spider is helping them with replenishment of each Part location to support a continuous manufacturing process without extra distractions.
 
One of the requirements defined in this scenario is that all products are Standard cost controlled.
 
Section: Setup
 
Let's review the setup which is required to implement this scenario
 
We'll start with introduction of products for a finished good (AlexMotorcycle) and its components (Body and Wheels)
 
Released product: AlexMotorcycle
 
 
Released product: AlexMotorcycle – Default order settings
 
 
Please note that Default order type = Kanban
 
Released product: AlexMotorcycle – Site specific settings
 
 
Cost price for AlexMotorcycle is 3000$
 
Released product: AlexMotorcycle – Cost price
 
 
Production type = BOM
 
Released product: AlexMotorcycle – Production type (BOM)
 
 
First of AlexMotorcycle components is going to be Body
 
Released product: Body
 
 
Released product: Body – Default order settings
 
 
Released product: Body – Site specific settings
 
 
Cost price for Body is 2500$
 
Released product: Body – Cost price
 
 
Finally another component of AlexMotorcycle is going to be Wheel(s)
 
Released product: Wheel
 
 
Released product: Wheel – Default order settings
 
 
Released product: Wheel – Site specific settings
 
 
Cost price for Wheel is 250$
 
Released product: Wheel – Cost price
 
 
Now as we introduced all necessary Released products let's take a quick look at their list
 
Released products
 
 
Next step will be to introduce Resource groups
 
Resource group: AlexMotor
 
 
Please note that AlexMotor resource group will be a Part location which will be Replenished by the Water spider
 
Resource group: AlexMotor – Workcell capacity
 
 
We are going to need one more Resource group for this scenario
 
Resource group: AlexGeneral
 
 
Please note that AlexGeneral resource group will be a General storage location which will be Replenishing location for Water spider. By other words, Water spider will transfer parts from AlexGeneral location (Replenishing) into AlexMotor location (Replenished) to supply Work cell worker with required parts.
 
Now we'll define BOM structure for AlexMotorcycle
 
BOM – Designer view: AlexMotorcycle
 
 
BOM – Lines view: AlexMotorcycle
 
 
Please note that the consumption of components will happen from Warehouse 12. In the case with Wheels Part location (Warehouse 12) will first be replenished by Water spider from General storage location (Warehouse 11).
 
Then we can define Production flow model and production flow
 
Production flow model: AlexModel
 
 
Production flow: AlexMotorcycle
 
 
Production flow version details: AlexMotorcycle
 
 
Please note that I changed Takt unit = Hr
 
Then we'll run Activity generation Wizards to generate activities for Transfer and Process
 
Production flow: Activity = Replenish (Welcome)
 
 
Production flow: Activity = Replenish (New activity)
 
 
Production flow: Activity = Replenish (Create transfer activity)
 
 
Please note that Replenishing location is AlexGeneral and Replenished location is AlexMotor as it was described above
 
Production flow: Activity = Replenish (Assign transfer locations)
 
 
Please note that because I've selected Replenishing and Replenished work cells on the previous step, the appropriate Warehouse and Location settings where automatically populated for me based on Resource group (Work cell) data
 
Production flow: Activity = Replenish (Assign activity time)
 
 
Please note that I assigned 0.25 hr as Runtime activity time
 
Production flow: Activity = Replenish (Wizard completed)
 
 
This is how Replenish Transfer activity looks like
 
Production flow: Activity = Replenish
 
 
Production flow: Replenish – Activity details
 
 
Now we'll introduce the second Process activity which will represent assembly step
 
Production flow: Activity = Assembly (Welcome)
 
 
Production flow: Activity = Assembly (New activity)
 
 
Production flow: Activity = Assembly (Create process activity)
 
 
Production flow: Activity = Assembly (Assign picking activities)
 
 
Please note that component Wheel will be picked from its Part location (Warehouse 12)
 
Production flow: Activity = Assembly (Assign activity time)
 
 
Please note that I assigned 0.25 hr as Runtime for this activity
 
Production flow: Activity = Assembly (Wizard completed)
 
 
Now we can review a newly created activity
 
Production flow activity: Assembly
 
 
Next step will be to define a relationship between Transfer and Process activity because logically Transfer of necessary component(s) must take place before Process activity will begin
 
Create activity relation
 
 
Now we can review activity details
 
Production flow activity: Assembly – Activity details
 
 
At this point we'll be back to the Production flow to validate it
 
Validate
 
 
Infolog
 
 
After successful validation we can activate Production flow
 
Activate
 
 
Infolog
 
 
Now Production flow has been successfully activated
 
Production flow: AlexMotorcycle
 
 
At this point we can introduce Kanban rules which will drive kanbans creation
 
First we'll create Withdrawal Kanban rule to generate Withdrawal kanban to replenish Part location for Wheel(s)
 
Kanban rules - Withdrawal
 
 
Kanban rules – Withdrawal (Events)
 
 
Please note that Kanban line event = Automatic which means that if Kanban line requirement (for Wheels) in order to produce a finished good BOM, the appropriate kanban will be created automatically
 
Kanban rules – Withdrawal (Production flow)
 
 
Please notice Receipt location to be a Part location (Warehouse 12) as expected
 
Now we'll create Manufacturing Kanban rule to describe the actual assembly process
 
Kanban rules - Manufacturing
 
 
Kanban rules – Manufacturing (Events)
 
 
Please note Sales event = Automatic. This makes perfect sense because we are establishing a classic Pull-based Make to Order scenario, so when a new Sales order is placed this will automatically trigger a creation of Manufacturing kanban to produce a finished good
 
Kanban rules – Manufacturing (Production flow)
 
 
Please notice that Receipt location is a Finished good location (Warehouse 13) as expected
 
Now before we process with execution of this scenario we want to make sure that we have enough on-hand for Wheel(s) components in Warehouse = 11 (because we first need to transfer parts to Warehouse 12), and also Body components in Warehouse 12. I simply used Inventory adjustment journal to introduce necessary levels of on-hand
 
Posted journal lines 
 
 
At this point we are ready to begin scenario execution
 
Section: Creation
 
We'll begin with placing a new Sales order for AlexMotorcycle
 
Sales order
 
 
Please note that AlexMotorcycle finished product is expected to be in a Finished good location (Warehouse 13). After we save Sales order the system based on Kanban rules in place will automatically create necessary kanbans. We can review created kanbans by opening Pegging tree form 
 
Pegging tree
 
 
As you can see according to Kanban rules 2 Kanban jobs will have to be completed to produce AlexMotorcycle, one for Transfer and another one for Process 
 
Pegging tree - Kanban
 
 
The following view shows that Transfer (Replenish) of Wheel part is required before Process (Assembly) may take place. You can clearly see it in Pegging details
 
Kanban
 
 
The view below shows what is necessary for Transfer to take place
 
Pegging tree - Kanban
 
 
Kanban
 
 
Let's take a quick look at Inventory transactions at this point
 
Inventory transactions
 
 
The next step will be to either manually plan or automatically plan Process activity. I'll do automatic planning by clicking "Plan the entire pegging tree"
 
Plan pegging tree
 
 
Now my kanban job shows status Planned as expected
 
Pegging tree – Kanban (Kanban jobs)
 
 
Then we are almost set to begin manufacturing activities
First we'll need to take care of the Transfer for Wheels, so we'll go ahead and launch Transfer jobs board
 
Transfer jobs board – Filter jobs
 
 
Here we'll see a Transfer job listed with its details
 
Transfer jobs board
 
 
Transfer jobs board – Tabs (Details)
 
 
Transfer jobs board – Tabs (Picking list)
 
 
Please note that because we've introduced enough on-hand for Wheels in advance Supply status indicates a green light for picking
 
Transfer jobs board – Tabs (Pegging)
 
 
Now let's check out Process jobs and we'll begin with launching Planning board to verify that Process job has been successfully planned for execution
 
Planning board – Workcell selection
 
 
Excellent, Process job is planned for one of days on the board
 
Planning board
 
 
Now we'll launch Process jobs board to see Process job there
 
Process jobs – Workcell selection
 
 
Process jobs board
 
 
Process jobs board – Tabs (Details)
 
 
Process jobs board – Tabs (Production instructions)
 
 
Process jobs board – Tabs (Picking list)
 
 
Please note that Body is available for picking, but Wheels are not. This is because we haven't completed a necessary transfer yet
 
Process jobs board – Tabs (Pegging)
 
 
And Pegging details clearly indicated that there's Replenish Transfer activity to be done
 
Now let's take a look at Kanban details and please note how Kanban Process job is referencing Sales order on the screen below
 
Kanban – Source requirements details
 
 
One more composite view of Process job and associated Transfer job is presented below
 
Process jobs board
 
 
Now we can finally begin the execution of the scenario
 
Section: Execution
 
We'll begin with Starting Transfer job first
 
Transfer – Start
 
 
Here's how inventory transactions look like after this step
 
Inventory transactions
 
 
Then we'll complete Transfer
 
Transfer – Complete
 
 
Here's how inventory transactions look like after this step
 
Inventory transactions
 
 
As we complete Transfer now we have enough Wheels in its Part location for Workcell worker to begin Assembly process
 
Process job
 
 
And this is what we are going to do next. We'll do Prepare step now
 
Process job – Prepare
 
 
And again we'll take a look at inventory transactions
 
Inventory transactions
 
 
Then we'll start Process job
 
Process job – Start
 
 
And review how inventory transactions changed after this step
 
Inventory transactions
 
 
And finally we'll Complete Process job
 
Process job – Complete
 
 
And also review how it was reflected in inventory transactions this time
 
Inventory transactions
 
 
After we produced a finished good we can review on-hand inventory for AlexMotorcycle in Finished goods location (Warehouse 13)
 
On-hand
 
 
And because we have produced the product we can now send it to the customer
 
Sales order – Packing slip and Invoice
 
 
This is how inventory transactions will look like after we update Sales order Packing Slip and Invoice
 
Inventory transactions
 
 
The very last step will be to run Lean costing routine to cost the production flow
 
Section: Costing
 
Cost the production flow
 
 
Prompt
 
 
Please note that no further registrations of kanban jobs will be possible after the date costing, but that's fine for the sake of this demo
 
Now we can review the results of Backflush costing calculation
 
Backflush costing calculation
 
 
Standard cost transactions
 
 
Unused quantities
 
 
WIP Balances (Price calculation)
 
 
And take a final look at inventory transactions
 
Inventory transactions
 
 
Summary: In this walkthrough I illustrated how to establish a classic Make to Order Lean Manufacturing scenario in Microsoft Dynamics AX 2012. We went through the process of setting up data, creation of initial demand, manufacturing process and Lean costing. In the next parts I'll focus on how to use IoT devices and the capabilities of Windows 10 IoT Core OS to fully automate this functional scenario using the concept of "Intelligent" location and provide the environment for workers to solely focus of their manufacturing tasks in order to deliver the best quality products for customers. 
                               
Tags: Microsoft Dynamics AX 2012 R3, Lean Manufacturing, Pull, Kanbans, Kanban rules, Production flow.
 
Note: This document is intended for information purposes only, presented as it is with no warranties from the author. This document may be updated with more content to better outline the issues and describe the solutions.
 
Author: Alex Anikiev, PhD, MCP

Special thanks for collaboration in building this scenario goes to my colleague, Microsoft Dynamics AX Manufacturing expert, Dan Burke